SEdit.Graphics
Class GArrow
java.lang.Object
SEdit.Graphics.GObject
SEdit.Graphics.GArrow
- Direct Known Subclasses:
- GPetriArrow, GSegmentedArrow
- public class GArrow
- extends GObject
CLASSE GArrow
/
Fields inherited from class SEdit.Graphics.GObject |
BOTTOM, bounds, CENTER, displayLabel, element, height, labelLocation, LEFT, RIGHT, selected, TOP, TOP_RIGHT, width, x, y |
Method Summary |
boolean |
contains(Point p)
|
void |
displayName(Graphics g)
|
protected void |
drawDiamondEnd(Graphics g,
Point from,
Point p)
|
protected void |
drawEnding(Graphics g,
int formType,
Point from,
Point p)
|
protected void |
drawRoundEnd(Graphics g,
Point p)
|
protected void |
drawSharpEnd(Graphics g,
Point from,
Point p)
|
protected void |
drawSquareEnd(Graphics g,
Point p)
|
protected void |
drawWhiteSharpEnd(Graphics g,
Point from,
Point p)
|
protected void |
fixBounds(Point _q,
Point _p)
|
Rectangle |
getBounds()
|
Point |
getCenter()
|
Dimension |
getDimension()
|
int |
getEndingForm()
|
int |
getLineStyle()
Get the value of lineStyle. |
int |
getStartingForm()
|
Point |
intersection(Point p)
|
boolean |
isContainedIn(Polygon p)
|
boolean |
isContainedIn(Rectangle r)
|
void |
paint(Graphics g)
|
protected void |
prepareColor(Graphics g)
|
void |
setCenter(int x,
int y)
|
void |
setEndingForm(int e)
|
void |
setLineStyle(int v)
Set the value of lineStyle. |
void |
setStartingForm(int e)
|
void |
snapToGrid(int s)
|
Methods inherited from class SEdit.Graphics.GObject |
alignHorizontalTo, alignVerticalTo, delete, drag, getDisplayLabel, getEditor, getForeground, getHeight, getLabelLocation, getLocation, getRectangle, getSElement, getWidth, init, intersection, isSelectable, isSelected, reInstall, select, setCenter, setDimension, setDisplayLabel, setEditor, setForeground, setHeight, setLabelLocation, setLocation, setLocation, setSElement, setSize, setWidth, translate, translateBound, translateWrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIRECT_LINE
public static final int DIRECT_LINE
- See Also:
- Constant Field Values
BROKEN_LINE
public static final int BROKEN_LINE
- See Also:
- Constant Field Values
ra
public int ra
ras
public int ras
q
protected Point q
p
protected Point p
defaultRp
protected static final int defaultRp
- See Also:
- Constant Field Values
defaultRb
protected static final int defaultRb
- See Also:
- Constant Field Values
bigRp
protected static final int bigRp
- See Also:
- Constant Field Values
bigRb
protected static final int bigRb
- See Also:
- Constant Field Values
rSquare
protected static final int rSquare
- See Also:
- Constant Field Values
rRound
protected static final int rRound
- See Also:
- Constant Field Values
rDiamond
protected static final int rDiamond
- See Also:
- Constant Field Values
NOTHING
public static final int NOTHING
- See Also:
- Constant Field Values
SHARPEND
public static final int SHARPEND
- See Also:
- Constant Field Values
SQUAREEND
public static final int SQUAREEND
- See Also:
- Constant Field Values
ROUNDEND
public static final int ROUNDEND
- See Also:
- Constant Field Values
DIAMONDEND
public static final int DIAMONDEND
- See Also:
- Constant Field Values
WHITESHARPEND
public static final int WHITESHARPEND
- See Also:
- Constant Field Values
GArrow
public GArrow()
GArrow
public GArrow(int _x,
int _y)
getLineStyle
public int getLineStyle()
- Get the value of lineStyle.
- Returns:
- Value of lineStyle.
setLineStyle
public void setLineStyle(int v)
- Set the value of lineStyle.
- Parameters:
v
- Value to assign to lineStyle.
getEndingForm
public int getEndingForm()
getStartingForm
public int getStartingForm()
setEndingForm
public void setEndingForm(int e)
setStartingForm
public void setStartingForm(int e)
getCenter
public Point getCenter()
- Overrides:
getCenter
in class GObject
setCenter
public void setCenter(int x,
int y)
- Overrides:
setCenter
in class GObject
drawSharpEnd
protected void drawSharpEnd(Graphics g,
Point from,
Point p)
drawWhiteSharpEnd
protected void drawWhiteSharpEnd(Graphics g,
Point from,
Point p)
drawSquareEnd
protected void drawSquareEnd(Graphics g,
Point p)
drawRoundEnd
protected void drawRoundEnd(Graphics g,
Point p)
drawDiamondEnd
protected void drawDiamondEnd(Graphics g,
Point from,
Point p)
fixBounds
protected void fixBounds(Point _q,
Point _p)
prepareColor
protected void prepareColor(Graphics g)
drawEnding
protected void drawEnding(Graphics g,
int formType,
Point from,
Point p)
paint
public void paint(Graphics g)
- Overrides:
paint
in class GObject
displayName
public void displayName(Graphics g)
- Overrides:
displayName
in class GObject
snapToGrid
public void snapToGrid(int s)
- Overrides:
snapToGrid
in class GObject
contains
public boolean contains(Point p)
- Overrides:
contains
in class GObject
isContainedIn
public boolean isContainedIn(Rectangle r)
- Overrides:
isContainedIn
in class GObject
isContainedIn
public boolean isContainedIn(Polygon p)
- Overrides:
isContainedIn
in class GObject
intersection
public Point intersection(Point p)
- Overrides:
intersection
in class GObject
getDimension
public Dimension getDimension()
- Overrides:
getDimension
in class GObject
getBounds
public Rectangle getBounds()
- Overrides:
getBounds
in class GObject
Copyright © J. Ferber, O. Gutknecht All Rights Reserved.