|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Any and all questions should be directed to me.
Field Summary | |
static int |
DIAMOND
|
static int |
ELLIPSE
|
static int |
HEXAGON
|
static int |
OCTAGON
|
static int |
PARALELLOGRAM
|
static int |
RECTANGLE
|
static int |
ROUNDED_RECTANGLE
|
static int |
TRIANGLE
|
Method Summary | |
java.awt.Stroke |
getBorder()
|
java.awt.Paint |
getBorderPaint()
|
float |
getBorderWidth()
|
int |
getDegree()
|
java.util.List |
getEdgeViewsList(NodeView otherNode)
|
int |
getGraphPerspectiveIndex()
|
GraphView |
getGraphView()
|
double |
getHeight()
TODO: Reconcile with Border Methods |
Label |
getLabel()
|
Node |
getNode()
|
java.awt.geom.Point2D |
getOffset()
|
int |
getRootGraphIndex()
|
java.awt.Paint |
getSelectedPaint()
|
int |
getShape()
Shape is currently defined via predefined variables in the NodeView interface. |
float |
getTransparency()
|
java.awt.Paint |
getUnselectedPaint()
|
double |
getWidth()
TODO: Reconcile with Border Methods |
double |
getXPosition()
|
double |
getYPosition()
|
boolean |
isSelected()
|
void |
select()
This draws us as selected |
void |
setBorder(java.awt.Stroke stroke)
|
void |
setBorderPaint(java.awt.Paint b_paint)
|
void |
setBorderWidth(float border_width)
|
boolean |
setHeight(double height)
TODO: Reconcile with Border Methods |
void |
setNodePosition(boolean animate)
moves this node to its stored x and y locations. |
void |
setOffset(double x,
double y)
|
boolean |
setSelected(boolean selected)
|
void |
setSelectedPaint(java.awt.Paint paint)
This sets the Paint that will be used by this node when it is painted as selected. |
void |
setShape(int shape)
Set a new shape for the Node, based on one of the pre-defined shapes Note: calling setPathTo( Shape ), allows one to define their own java.awt.Shape ( i.e. |
void |
setToolTip(java.lang.String tip)
Sets what the tooltip will be for this NodeView |
void |
setTransparency(float trans)
|
void |
setUnselectedPaint(java.awt.Paint paint)
Set the deafult paint of this node |
boolean |
setWidth(double width)
TODO: Reconcile with Border Methods |
void |
setXPosition(double new_x_position)
|
void |
setXPosition(double new_x_position,
boolean update)
Set udpdate to false in order to do a layout, and then call updateNode on all the nodes.. |
void |
setYPosition(double new_y_position)
|
void |
setYPosition(double new_y_position,
boolean update)
Set udpdate to false in order to do a layout, and then call updateNode on all the nodes.. |
void |
unselect()
This draws us as unselected |
Field Detail |
public static final int TRIANGLE
public static final int DIAMOND
public static final int ELLIPSE
public static final int HEXAGON
public static final int OCTAGON
public static final int PARALELLOGRAM
public static final int RECTANGLE
public static final int ROUNDED_RECTANGLE
Method Detail |
public GraphView getGraphView()
public Node getNode()
public int getGraphPerspectiveIndex()
public int getRootGraphIndex()
public java.util.List getEdgeViewsList(NodeView otherNode)
public int getShape()
public void setSelectedPaint(java.awt.Paint paint)
paint
- The Paint to be usedpublic java.awt.Paint getSelectedPaint()
public void setUnselectedPaint(java.awt.Paint paint)
paint
- the default Paint of this nodepublic java.awt.Paint getUnselectedPaint()
public void setBorderPaint(java.awt.Paint b_paint)
b_paint
- the paint the border will usepublic java.awt.Paint getBorderPaint()
public void setBorderWidth(float border_width)
border_width
- The width of the border.public float getBorderWidth()
public void setBorder(java.awt.Stroke stroke)
stroke
- the new stroke for the borderpublic java.awt.Stroke getBorder()
public void setTransparency(float trans)
trans
- new value for the transparencypublic float getTransparency()
public boolean setWidth(double width)
width
- the currently set width of this nodepublic double getWidth()
public boolean setHeight(double height)
height
- the currently set height of this nodepublic double getHeight()
public Label getLabel()
public int getDegree()
public void setOffset(double x, double y)
public java.awt.geom.Point2D getOffset()
public void setXPosition(double new_x_position)
public void setXPosition(double new_x_position, boolean update)
new_x_position
- for this nodeupdate
- if this is true, the node will move immediatly.public double getXPosition()
note that unless updateNode() has been called, this may not be
the "real" location of this node
public void setYPosition(double new_y_position)
public void setYPosition(double new_y_position, boolean update)
new_y_position
- for this nodeupdate
- if this is true, the node will move immediatly.public double getYPosition()
note that unless updateNode() has been called, this may not be
the "real" location of this node
public void setNodePosition(boolean animate)
public void select()
public void unselect()
public boolean isSelected()
public boolean setSelected(boolean selected)
public void setShape(int shape)
public void setToolTip(java.lang.String tip)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |