public class GFPolyline extends GFAbstractPointListShape
| Constructor and Description |
|---|
GFPolyline(IPictogramElementDelegate pictogramElementDelegate,
GraphicsAlgorithm graphicsAlgorithm)
Creates a new GFPolyline.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPointInFigure(int x,
int y)
Returns true, if the given point is contained in this Polyline.
|
org.eclipse.draw2d.geometry.Rectangle |
getBounds()
Returns the bounding box of the Polyline.
|
void |
primTranslate(int dx,
int dy)
Translates the shape by the given x/y dimensions.
|
void |
setGeneralBezierDistance(int bezierDistance)
Sets the general distance used to calculate the rounding of the
bezier-curve.
|
void |
setLineWidth(int lw)
Sets the line-width of the Polyline.
|
void |
setMinimumSelectionLineWidth(int minimumSelectionLineWidth)
Sets the selection tolerance.
|
void |
setSpecificBezierDistances(int[] bezierDistances)
Sets the specific distances used to calculate the rounding of the
bezier-curve.
|
void |
setSuppressFilling(boolean suppressFilling)
Set, if the filling should be suppressed under all circumstances (even if
Shape.setFill(boolean) was set to true). |
addPoint, getEnd, getPoints, getStart, insertPoint, removeAllPoints, removePoint, setEnd, setPoint, setPoints, setStartcontainsPoint, getHandleBounds, getVisualState, paintFigure, setClickArea, setSelectionBorder, visualStateChangedgetAlpha, getAntialias, getLineAttributes, getLineCap, getLineDash, getLineDashOffset, getLineJoin, getLineMiterLimit, getLineStyle, getLineWidth, getLineWidthFloat, 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, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, 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, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAll, 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, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, 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, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validatepublic GFPolyline(IPictogramElementDelegate pictogramElementDelegate, GraphicsAlgorithm graphicsAlgorithm)
pictogramElementDelegate - The PictogramElementDelegate which provides the
GraphicsAlgorithm.graphicsAlgorithm - The GraphicsAlgorithm which provides the values to paint this
Shape.public void setMinimumSelectionLineWidth(int minimumSelectionLineWidth)
minimumSelectionLineWidth - The new minimum selection line-width to set.public void setSuppressFilling(boolean suppressFilling)
Shape.setFill(boolean) was set to true).suppressFilling - If true, then the filling is suppressed under all
circumstances.public void setGeneralBezierDistance(int bezierDistance)
setSpecificBezierDistances(int[]). See
GFFigureUtil.getBezierPath(List, boolean) for a more details.bezierDistance - The general distance used to calculate the rounding of the
bezier-curve.public void setSpecificBezierDistances(int[] bezierDistances)
setGeneralBezierDistance(int) will be used. See
GFFigureUtil.getBezierPath(List, boolean) for a more details.bezierDistances - The specific distance used to calculate the rounding of the
bezier-curve.public org.eclipse.draw2d.geometry.Rectangle getBounds()
Figure.setBounds(Rectangle) does not change the dimension of
the bounding box, but it may translate the bounding box (see
primTranslate(int, int)).getBounds in interface org.eclipse.draw2d.IFiguregetBounds in class org.eclipse.draw2d.Figurepublic void setLineWidth(int lw)
setLineWidth in class org.eclipse.draw2d.Shapelw - The line-width to set.getBounds()public boolean containsPointInFigure(int x,
int y)
#setSelectionTolerance(int))x - The x-coordinate of the point to check.y - The y-coordinate of the point to check.GFAbstractShape.containsPoint(int, int)public void primTranslate(int dx,
int dy)
primTranslate in class org.eclipse.draw2d.Figuredx - The amount to translate horizontallydy - The amount to translate verticallygetBounds()