Interface FlowBorder

All Superinterfaces:
Border
All Known Implementing Classes:
AbstractFlowBorder

public interface FlowBorder extends Border
Experimental API. This is a special type of border for use with FlowFigures. This interface should not be implemented by clients. Clients should extend AbstractFlowBorder.
Since:
3.1
  • Method Details

    • getBottomMargin

      int getBottomMargin()
      Returns the collapsable bottom margin in pixels. Margin is the space external to the border and the flow box on which it is rendered. Vertical margins (top and bottom) may collapse in some situations, such as adjacent or nested blocks.
      Returns:
      the bottom margin
      Since:
      3.1
    • getLeftMargin

      int getLeftMargin()
      Returns the left margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.
      Returns:
      the left margin
      Since:
      3.1
    • getRightMargin

      int getRightMargin()
      Returns the right margin in pixels. Margin is the space external to the border and the flow box on which it is rendered.
      Returns:
      the right margin
      Since:
      3.1
    • getTopMargin

      int getTopMargin()
      Returns the collapsable top margin in pixels. Margin is the space external to the border and the flow box on which it is rendered. Vertical margins (top and bottom) may collapse in some situations, such as adjacent or nested blocks.
      Returns:
      the top margin
      Since:
      3.1
    • paint

      void paint(FlowFigure figure, Graphics g, Rectangle where, int sides)
      Paints the border around the given box location. The border is asked to paint each of the FlowFigure's boxes. The sideInfo parameter is used to indicate whether the left and right sides should be rendered. This parameter will contain the following bit flags:
      Parameters:
      figure - the flow figure whose border is being painted
      g - the graphics
      where - the relative location of the box
      sides - bits indicating sides and bidi orientation
      Since:
      3.1