Class AbstractPolygonBorder

java.lang.Object
net.infonode.gui.shaped.border.AbstractShapedBorder
net.infonode.gui.shaped.border.AbstractPolygonBorder
All Implemented Interfaces:
Serializable, Border, ShapedBorder
Direct Known Subclasses:
PolygonBorder, SlopedTabLineBorder

public abstract class AbstractPolygonBorder extends AbstractShapedBorder
See Also:
  • Constructor Details

  • Method Details

    • getShape

      public Shape getShape(Component c, int x, int y, int width, int height)
      Description copied from interface: ShapedBorder

      Gets the shape of this border.

      Parameters:
      c - the component to create a shape for
      x - the x offset
      y - the y offset
      width - the width
      height - the height
      Returns:
      the Shape for this border or null if there is no shape and the normal rectangle bounds should be used
    • isBorderOpaque

      public boolean isBorderOpaque()
    • paintBorder

      public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
    • getBorderInsets

      public Insets getBorderInsets(Component c)
    • getShapedBorderInsets

      protected Insets getShapedBorderInsets(Component c)
    • getShapedBorderHighlightInsets

      protected Insets getShapedBorderHighlightInsets(Component c)
    • createPolygon

      protected Polygon createPolygon(Component c, int width, int height)
    • paintPolygon

      protected void paintPolygon(Component c, Graphics2D g, Polygon polygon, int width, int height)
    • paintHighlight

      protected void paintHighlight(Component c, Graphics2D g, Polygon polygon, int width, int height)
    • lineIsDrawn

      protected boolean lineIsDrawn(int index, Polygon polygon)
    • isHighlightable

      protected boolean isHighlightable(int deltaX, int deltaY)
    • isPointsClockwise

      protected boolean isPointsClockwise(Component c)
    • getHighlightOffsetX

      protected int getHighlightOffsetX(int deltaX, int deltaY)
    • getHighlightOffsetY

      protected int getHighlightOffsetY(int deltaX, int deltaY)
    • setPoint

      protected void setPoint(Polygon polygon, int x, int y)