public class PolygonDecoration extends Polygon implements RotatableDecoration
polylines.Figure.FigureIterator, Figure.IdentitySearchIFigure.NoInsets| Modifier and Type | Field and Description |
|---|---|
static PointList |
INVERTED_TRIANGLE_TIP
Template for a triangle that points to the left when the rotation angle
is 0
|
static PointList |
TRIANGLE_TIP
Template for a triangle that points to the right when the rotation angle
is 0
|
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipMAX_DIMENSION, MIN_DIMENSION, NO_INSETS| Constructor and Description |
|---|
PolygonDecoration()
Constructs a PolygonDecoration.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getLocalBackgroundColor()
Returns
null or the local background Color of this Figure. |
PointList |
getPoints()
Returns the points in the PolygonDecoration as a PointList.
|
void |
setLocation(Point p)
Sets the location of this PolygonDecoration.
|
void |
setReferencePoint(Point ref)
Sets the rotation of this decoration so that the decoration points toward
the given reference point.
|
void |
setRotation(double angle)
Sets the angle by which rotation is to be done on the PolygonDecoration.
|
void |
setScale(double x,
double y)
Sets the amount of scaling to be done along X and Y axes on the
PolygonDecoration's template.
|
void |
setTemplate(PointList pl)
Sets the PolygonDecorations point template to the passed PointList.
|
containsPoint, fillShape, outlineShape, shapeContainsPointgetBounds, isOpaque, primTranslate, removeAllPoints, repaint, setLineWidth, setPoints, setToleranceaddPoint, childrenContainsPoint, getEnd, getStart, insertPoint, removePoint, setEnd, setEndpoints, setPoint, setStartgetAlpha, getAntialias, getLineAttributes, getLineCap, getLineDash, getLineDashOffset, getLineJoin, getLineMiterLimit, getLineStyle, getLineWidth, getLineWidthFloat, paintFigure, setAlpha, setAlpha, setAntialias, setAntialias, setFill, setFillXOR, setLineAttributes, setLineCap, setLineDash, setLineDashOffset, setLineJoin, setLineMiterLimit, setLineStyle, setLineWidthFloat, setOutline, setOutlineXOR, setXORadd, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validatepublic static final PointList TRIANGLE_TIP
public static final PointList INVERTED_TRIANGLE_TIP
public PolygonDecoration()
public Color getLocalBackgroundColor()
Figurenull or the local background Color of this Figure.
Does not inherit this Color from the parent.getLocalBackgroundColor in interface IFiguregetLocalBackgroundColor in class Figurenull or the local background ColorIFigure.getBackgroundColor()public PointList getPoints()
getPoints in class AbstractPointListShapepublic void setLocation(Point p)
setLocation in interface IFiguresetLocation in interface RotatableDecorationsetLocation in class Figurep - the new locationIFigure.setLocation(Point)public void setTemplate(PointList pl)
pl - the PointList outline to use as the PolygonDecoration's regionpublic void setScale(double x,
double y)
x - X scalingy - Y scalingpublic void setReferencePoint(Point ref)
setReferencePoint in interface RotatableDecorationref - the reference pointpublic void setRotation(double angle)
angle - Angle of rotationCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.