|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.swtlayeredgraph.CrossCursor
public class CrossCursor
Constructor Summary | |
---|---|
CrossCursor()
Default constructor |
|
CrossCursor(int color,
int lineWidth)
Builds a new graph cursor in the shape of a large cross on the screen. |
Method Summary | |
---|---|
void |
draw(GCTransformer transformer,
GraphPoint centerPoint)
Draws the cursor on the canvas with the specified center point. |
java.lang.Boolean |
isVisible()
Checks to see if cursor is visible. |
void |
setVisible(java.lang.Boolean visible)
Sets the visibility status of the cursor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrossCursor()
public CrossCursor(int color, int lineWidth)
color
- Color of lineslineWidth
- Width in pixels of the lines.Method Detail |
---|
public void draw(GCTransformer transformer, GraphPoint centerPoint)
IGraphCursor
draw
in interface IGraphCursor
transformer
- Transformer used to draw withcenterPoint
- Center point of the cursorpublic java.lang.Boolean isVisible()
IGraphCursor
isVisible
in interface IGraphCursor
public void setVisible(java.lang.Boolean visible)
IGraphCursor
setVisible
in interface IGraphCursor
visible
- Flag to indicate if cursor is visible
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |