|
|||||||||
| Home >> All >> giny >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
giny.view
Interface NodeView

- public interface NodeView
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 |
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 |
java.lang.String |
getLabel()
|
giny.model.Node |
getNode()
|
java.awt.geom.Point2D |
getOffset()
|
java.awt.Paint |
getSelectedPaint()
|
int |
getShape()
Shape is currently defined via predefined variables in the NodeView interface. |
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)
|
void |
setHeight(double height)
TODO: Reconcile with Border Methods |
void |
setLabel(java.lang.String label)
|
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 |
setUnselectedPaint(java.awt.Paint paint)
Set the deafult paint of this node |
void |
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 |
TRIANGLE
public static final int TRIANGLE
- See Also:
- Constant Field Values
DIAMOND
public static final int DIAMOND
- See Also:
- Constant Field Values
ELLIPSE
public static final int ELLIPSE
- See Also:
- Constant Field Values
HEXAGON
public static final int HEXAGON
- See Also:
- Constant Field Values
OCTAGON
public static final int OCTAGON
- See Also:
- Constant Field Values
PARALELLOGRAM
public static final int PARALELLOGRAM
- See Also:
- Constant Field Values
RECTANGLE
public static final int RECTANGLE
- See Also:
- Constant Field Values
| Method Detail |
getGraphView
public GraphView getGraphView()
getNode
public giny.model.Node getNode()
getGraphPerspectiveIndex
public int getGraphPerspectiveIndex()
getEdgeViewsList
public java.util.List getEdgeViewsList(NodeView otherNode)
getShape
public int getShape()
- Shape is currently defined via predefined variables in
the NodeView interface. To get the actual java.awt.Shape
use getPathReference()
setSelectedPaint
public void setSelectedPaint(java.awt.Paint paint)
- This sets the Paint that will be used by this node
when it is painted as selected.
getSelectedPaint
public java.awt.Paint getSelectedPaint()
setUnselectedPaint
public void setUnselectedPaint(java.awt.Paint paint)
- Set the deafult paint of this node
getUnselectedPaint
public java.awt.Paint getUnselectedPaint()
setBorderPaint
public void setBorderPaint(java.awt.Paint b_paint)
getBorderPaint
public java.awt.Paint getBorderPaint()
setBorderWidth
public void setBorderWidth(float border_width)
getBorderWidth
public float getBorderWidth()
setBorder
public void setBorder(java.awt.Stroke stroke)
getBorder
public java.awt.Stroke getBorder()
setWidth
public void setWidth(double width)
- TODO: Reconcile with Border Methods
getWidth
public double getWidth()
- TODO: Reconcile with Border Methods
setHeight
public void setHeight(double height)
- TODO: Reconcile with Border Methods
getHeight
public double getHeight()
- TODO: Reconcile with Border Methods
setLabel
public void setLabel(java.lang.String label)
getLabel
public java.lang.String getLabel()
getDegree
public int getDegree()
setOffset
public void setOffset(double x,
double y)
getOffset
public java.awt.geom.Point2D getOffset()
setXPosition
public void setXPosition(double new_x_position)
setXPosition
public 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..
// TODO -- HACKY
getXPosition
public double getXPosition()
setYPosition
public void setYPosition(double new_y_position)
setYPosition
public 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..
// TODO -- HACKY
getYPosition
public double getYPosition()
setNodePosition
public void setNodePosition(boolean animate)
- moves this node to its stored x and y locations.
select
public void select()
- This draws us as selected
unselect
public void unselect()
- This draws us as unselected
isSelected
public boolean isSelected()
setSelected
public boolean setSelected(boolean selected)
setShape
public 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. A picture of Johnny Cash )
|
|||||||||
| Home >> All >> giny >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC