|
|||||||||
| Home >> All >> [ coltginy overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
coltginy
Class ColtGraphViewModel

java.lang.Objectcoltginy.ColtGraphViewModel
- All Implemented Interfaces:
- giny.view.GraphView
- public class ColtGraphViewModel
- extends java.lang.Object
- implements giny.view.GraphView
- extends java.lang.Object
This ColtGraphViewModel is designed to be a "headless" GraphView. While it implements GraphView all methods that actaully deal with viewable things are abstract. This class would be used when you would want to compute a layout but not ever put anything on the screen
| Field Summary | |
static java.awt.Paint |
DEFAULT_BORDER_PAINT
|
static java.awt.Paint |
DEFAULT_EDGE_END_PAINT
|
static java.awt.Paint |
DEFAULT_EDGE_STROKE_PAINT
|
static java.awt.Paint |
DEFAULT_EDGE_STROKE_PAINT_SELECTION
|
static java.awt.Paint |
DEFAULT_NODE_PAINT
|
static java.awt.Paint |
DEFAULT_NODE_SELECTION_PAINT
|
double |
DEFAULT_X
|
double |
DEFAULT_Y
|
static int |
EDGE_LINE_TYPE
|
static int |
EDGE_PAINT
|
static int |
EDGE_SELECTION_PAINT
|
static int |
EDGE_SOURCE_END_PAINT
|
static int |
EDGE_SOURCE_END_SELECTED_PAINT
|
static int |
EDGE_SOURCE_END_TYPE
|
static int |
EDGE_TARGET_END_PAINT
|
static int |
EDGE_TARGET_END_SELECTED_PAINT
|
static int |
EDGE_TARGET_END_TYPE
|
static int |
EDGE_WIDTH
|
protected OpenIntObjectHashMap |
edgeDataDescription
The Description and Class type associated with a Edge Data Type |
protected OpenIntObjectHashMap |
edgeDataStore
Data store for Edges |
protected java.lang.String |
identifier
A unique Identofier for the Model |
static int |
NODE_BORDER_PAINT
|
static int |
NODE_BORDER_WIDTH
|
static int |
NODE_HEIGHT
|
static int |
NODE_LABEL
|
static int |
NODE_PAINT
|
static int |
NODE_SELECTION_PAINT
|
static int |
NODE_SHAPE
|
static int |
NODE_WIDTH
|
static int |
NODE_X_POSITION
|
static int |
NODE_Y_POSITION
|
protected OpenIntObjectHashMap |
nodeDataDescription
The Description and Class type associated with a Node Data Type |
protected OpenIntObjectHashMap |
nodeDataStore
Data store for Nodes |
protected giny.model.GraphPerspective |
perspective
The GraphPerspective that we hold view information for |
static int |
SOURCE_INDEX
|
static int |
TARGET_INDEX
|
private static int |
viewCount
A static variable that is used to assign a default unique name to every GraphView |
protected java.util.ArrayList |
viewDataStore
A GraphView can have associated with it an array of pointers that are used to drive data-driven views. |
| Constructor Summary | |
ColtGraphViewModel(giny.model.GraphPerspective perspective)
|
|
ColtGraphViewModel(java.lang.String identifier,
giny.model.GraphPerspective perspective)
Creates a new ColtGraphViewModel given |
|
| Method Summary | |
void |
fitContent()
NOT IMPLEMNTED IN THIS CLASS |
java.lang.Object[] |
getAllEdgePropertyData(int edge_index)
|
java.lang.Object[] |
getAllNodePropertyData(int node_index)
|
java.awt.Paint |
getBackgroundPaint()
NOT IMPLEMNTED IN THIS CLASS |
java.awt.Component |
getComponent()
NOT IMPLEMNTED IN THIS CLASS |
boolean |
getEdgeBooleanProperty(int edge_index,
int property)
This method stores the primitive type wrapped in a Boolean, however a boolean can be returned, if you don't want to use the Object property method. |
double |
getEdgeDoubleProperty(int edge_index,
int property)
This method stores the primitive type wrapped in a Double, however a double can be returned, if you don't want to use the Object property method. |
float |
getEdgeFloatProperty(int edge_index,
int property)
This method stores the primitive type wrapped in a Float, however a float can be returned, if you don't want to use the Object property method. |
int |
getEdgeIntProperty(int edge_index,
int property)
This method stores the primitive type wrapped in a Integer, however a Integer can be returned, if you don't want to use the Object property method. |
java.lang.Object |
getEdgeObjectProperty(int edge_index,
int property)
Return the stored value for the edge for the given property |
giny.view.EdgeView |
getEdgeView(giny.model.Edge graph_edge)
NOT IMPLEMNTED IN THIS CLASS |
giny.view.EdgeView |
getEdgeView(int s)
|
int |
getEdgeViewCount()
|
java.util.Iterator |
getEdgeViewsIterator()
NOT IMPLEMNTED IN THIS CLASS |
java.util.List |
getEdgeViewsList()
NOT IMPLEMNTED IN THIS CLASS |
java.util.List |
getEdgeViewsList(giny.model.Node one,
giny.model.Node two)
NOT IMPLEMNTED IN THIS CLASS |
giny.model.GraphPerspective |
getGraphPerspective()
|
boolean |
getNodeBooleanProperty(int node_index,
int property)
This method stores the primitive type wrapped in a Boolean, however a boolean can be returned, if you don't want to use the Object property method. |
double |
getNodeDoubleProperty(int node_index,
int property)
This method stores the primitive type wrapped in a Double, however a double can be returned, if you don't want to use the Object property method. |
float |
getNodeFloatProperty(int node_index,
int property)
This method stores the primitive type wrapped in a Float, however a float can be returned, if you don't want to use the Object property method. |
int |
getNodeIntProperty(int node_index,
int property)
This method stores the primitive type wrapped in a Integer, however a Integer can be returned, if you don't want to use the Object property method. |
java.lang.Object |
getNodeObjectProperty(int node_index,
int property)
Return the stored value for the node for the given property |
giny.view.NodeView |
getNodeView(int s)
|
giny.view.NodeView |
getNodeView(giny.model.Node graph_node)
NOT IMPLEMNTED IN THIS CLASS |
int |
getNodeViewCount()
|
java.util.Iterator |
getNodeViewsIterator()
NOT IMPLEMNTED IN THIS CLASS |
java.util.List |
getNodeViewsList()
NOT IMPLEMNTED IN THIS CLASS |
int[] |
getSelectedEdgeIndices()
|
java.util.List |
getSelectedEdges()
NOT IMPLEMNTED IN THIS CLASS |
int[] |
getSelectedNodeIndices()
NOT IMPLEMNTED IN THIS CLASS |
java.util.List |
getSelectedNodes()
NOT IMPLEMNTED IN THIS CLASS |
double |
getZoom()
NOT IMPLEMNTED IN THIS CLASS |
boolean |
hideGraphObject(java.lang.Object object)
|
boolean |
hideGraphObjects(java.util.List objects)
Warning!!!!!!! Only to be used for homogenous groups!!!! |
void |
setAllEdgePropertyData(int edge_index,
java.lang.Object[] data)
Set All Data For an Edge Big Bold Faced Warning Talk to rowan before using. |
void |
setAllNodePropertyData(int node_index,
java.lang.Object[] data)
Set All Data For a NOde Big Bold Faced Warning Talk to rowan before using. |
void |
setBackgroundPaint(java.awt.Paint paint)
NOT IMPLEMNTED IN THIS CLASS |
boolean |
setEdgeBooleanProperty(int edge_index,
int property,
boolean value)
|
boolean |
setEdgeDoubleProperty(int edge_index,
int property,
double value)
|
boolean |
setEdgeFloatProperty(int edge_index,
int property,
float value)
|
boolean |
setEdgeIntProperty(int edge_index,
int property,
int value)
|
boolean |
setEdgeObjectProperty(int edge_index,
int property,
java.lang.Object value)
|
boolean |
setNodeBooleanProperty(int node_index,
int property,
boolean value)
|
boolean |
setNodeDoubleProperty(int node_index,
int property,
double value)
|
boolean |
setNodeFloatProperty(int node_index,
int property,
float value)
|
boolean |
setNodeIntProperty(int node_index,
int property,
int value)
|
boolean |
setNodeObjectProperty(int node_index,
int property,
java.lang.Object value)
|
void |
setZoom(double zoom)
NOT IMPLEMNTED IN THIS CLASS |
boolean |
showGraphObject(java.lang.Object object)
|
boolean |
showGraphObjects(java.util.List objects)
Warning!!!!!!! Only to be used for homogenous groups!!!! |
void |
updateView()
NOT IMPLEMNTED IN THIS CLASS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DEFAULT_X
public double DEFAULT_X
DEFAULT_Y
public double DEFAULT_Y
DEFAULT_NODE_PAINT
public static java.awt.Paint DEFAULT_NODE_PAINT
DEFAULT_NODE_SELECTION_PAINT
public static java.awt.Paint DEFAULT_NODE_SELECTION_PAINT
DEFAULT_BORDER_PAINT
public static java.awt.Paint DEFAULT_BORDER_PAINT
DEFAULT_EDGE_STROKE_PAINT
public static java.awt.Paint DEFAULT_EDGE_STROKE_PAINT
DEFAULT_EDGE_STROKE_PAINT_SELECTION
public static java.awt.Paint DEFAULT_EDGE_STROKE_PAINT_SELECTION
DEFAULT_EDGE_END_PAINT
public static java.awt.Paint DEFAULT_EDGE_END_PAINT
nodeDataStore
protected OpenIntObjectHashMap nodeDataStore
- Data store for Nodes
nodeDataDescription
protected OpenIntObjectHashMap nodeDataDescription
- The Description and Class type associated with a Node Data Type
edgeDataStore
protected OpenIntObjectHashMap edgeDataStore
- Data store for Edges
edgeDataDescription
protected OpenIntObjectHashMap edgeDataDescription
- The Description and Class type associated with a Edge Data Type
viewDataStore
protected java.util.ArrayList viewDataStore
- A GraphView can have associated with it an array
of pointers that are used to drive data-driven
views. Models don't need this because the algorithm
that would use that data object would already be able
to access itself.
perspective
protected giny.model.GraphPerspective perspective
- The GraphPerspective that we hold view information for
identifier
protected java.lang.String identifier
- A unique Identofier for the Model
NODE_X_POSITION
public static int NODE_X_POSITION
NODE_Y_POSITION
public static int NODE_Y_POSITION
NODE_SHAPE
public static int NODE_SHAPE
NODE_PAINT
public static int NODE_PAINT
NODE_SELECTION_PAINT
public static int NODE_SELECTION_PAINT
NODE_BORDER_PAINT
public static int NODE_BORDER_PAINT
NODE_BORDER_WIDTH
public static int NODE_BORDER_WIDTH
NODE_WIDTH
public static int NODE_WIDTH
NODE_HEIGHT
public static int NODE_HEIGHT
NODE_LABEL
public static int NODE_LABEL
SOURCE_INDEX
public static int SOURCE_INDEX
TARGET_INDEX
public static int TARGET_INDEX
EDGE_WIDTH
public static int EDGE_WIDTH
EDGE_LINE_TYPE
public static int EDGE_LINE_TYPE
EDGE_PAINT
public static int EDGE_PAINT
EDGE_SELECTION_PAINT
public static int EDGE_SELECTION_PAINT
EDGE_SOURCE_END_TYPE
public static int EDGE_SOURCE_END_TYPE
EDGE_SOURCE_END_PAINT
public static int EDGE_SOURCE_END_PAINT
EDGE_SOURCE_END_SELECTED_PAINT
public static int EDGE_SOURCE_END_SELECTED_PAINT
EDGE_TARGET_END_TYPE
public static int EDGE_TARGET_END_TYPE
EDGE_TARGET_END_PAINT
public static int EDGE_TARGET_END_PAINT
EDGE_TARGET_END_SELECTED_PAINT
public static int EDGE_TARGET_END_SELECTED_PAINT
viewCount
private static int viewCount
- A static variable that is used to assign
a default unique name to every GraphView
| Constructor Detail |
ColtGraphViewModel
public ColtGraphViewModel(giny.model.GraphPerspective perspective)
ColtGraphViewModel
public ColtGraphViewModel(java.lang.String identifier, giny.model.GraphPerspective perspective)
- Creates a new ColtGraphViewModel given
| Method Detail |
setAllNodePropertyData
public void setAllNodePropertyData(int node_index,
java.lang.Object[] data)
- Set All Data For a NOde
Big Bold Faced Warning
Talk to rowan before using.- Specified by:
setAllNodePropertyDatain interfaceginy.view.GraphView
getAllNodePropertyData
public java.lang.Object[] getAllNodePropertyData(int node_index)
- Specified by:
getAllNodePropertyDatain interfaceginy.view.GraphView
setAllEdgePropertyData
public void setAllEdgePropertyData(int edge_index,
java.lang.Object[] data)
- Set All Data For an Edge
Big Bold Faced Warning
Talk to rowan before using.- Specified by:
setAllEdgePropertyDatain interfaceginy.view.GraphView
getAllEdgePropertyData
public java.lang.Object[] getAllEdgePropertyData(int edge_index)
- Specified by:
getAllEdgePropertyDatain interfaceginy.view.GraphView
getNodeObjectProperty
public java.lang.Object getNodeObjectProperty(int node_index, int property)
- Return the stored value for the node for the given property
- Specified by:
getNodeObjectPropertyin interfaceginy.view.GraphView
setNodeObjectProperty
public boolean setNodeObjectProperty(int node_index,
int property,
java.lang.Object value)
- Specified by:
setNodeObjectPropertyin interfaceginy.view.GraphView
getEdgeObjectProperty
public java.lang.Object getEdgeObjectProperty(int edge_index, int property)
- Return the stored value for the edge for the given property
- Specified by:
getEdgeObjectPropertyin interfaceginy.view.GraphView
setEdgeObjectProperty
public boolean setEdgeObjectProperty(int edge_index,
int property,
java.lang.Object value)
- Specified by:
setEdgeObjectPropertyin interfaceginy.view.GraphView
getNodeDoubleProperty
public double getNodeDoubleProperty(int node_index,
int property)
- This method stores the primitive type wrapped in a Double,
however a double can be returned, if you don't want to use the
Object property method.
- Specified by:
getNodeDoublePropertyin interfaceginy.view.GraphView
setNodeDoubleProperty
public boolean setNodeDoubleProperty(int node_index,
int property,
double value)
- Specified by:
setNodeDoublePropertyin interfaceginy.view.GraphView
getEdgeDoubleProperty
public double getEdgeDoubleProperty(int edge_index,
int property)
- This method stores the primitive type wrapped in a Double,
however a double can be returned, if you don't want to use the
Object property method.
- Specified by:
getEdgeDoublePropertyin interfaceginy.view.GraphView
setEdgeDoubleProperty
public boolean setEdgeDoubleProperty(int edge_index,
int property,
double value)
- Specified by:
setEdgeDoublePropertyin interfaceginy.view.GraphView
getNodeFloatProperty
public float getNodeFloatProperty(int node_index,
int property)
- This method stores the primitive type wrapped in a Float,
however a float can be returned, if you don't want to use the
Object property method.
- Specified by:
getNodeFloatPropertyin interfaceginy.view.GraphView
setNodeFloatProperty
public boolean setNodeFloatProperty(int node_index,
int property,
float value)
- Specified by:
setNodeFloatPropertyin interfaceginy.view.GraphView
getEdgeFloatProperty
public float getEdgeFloatProperty(int edge_index,
int property)
- This method stores the primitive type wrapped in a Float,
however a float can be returned, if you don't want to use the
Object property method.
- Specified by:
getEdgeFloatPropertyin interfaceginy.view.GraphView
setEdgeFloatProperty
public boolean setEdgeFloatProperty(int edge_index,
int property,
float value)
- Specified by:
setEdgeFloatPropertyin interfaceginy.view.GraphView
getNodeBooleanProperty
public boolean getNodeBooleanProperty(int node_index,
int property)
- This method stores the primitive type wrapped in a Boolean,
however a boolean can be returned, if you don't want to use the
Object property method.
- Specified by:
getNodeBooleanPropertyin interfaceginy.view.GraphView
setNodeBooleanProperty
public boolean setNodeBooleanProperty(int node_index,
int property,
boolean value)
- Specified by:
setNodeBooleanPropertyin interfaceginy.view.GraphView
getEdgeBooleanProperty
public boolean getEdgeBooleanProperty(int edge_index,
int property)
- This method stores the primitive type wrapped in a Boolean,
however a boolean can be returned, if you don't want to use the
Object property method.
- Specified by:
getEdgeBooleanPropertyin interfaceginy.view.GraphView
setEdgeBooleanProperty
public boolean setEdgeBooleanProperty(int edge_index,
int property,
boolean value)
- Specified by:
setEdgeBooleanPropertyin interfaceginy.view.GraphView
getNodeIntProperty
public int getNodeIntProperty(int node_index,
int property)
- This method stores the primitive type wrapped in a Integer,
however a Integer can be returned, if you don't want to use the
Object property method.
- Specified by:
getNodeIntPropertyin interfaceginy.view.GraphView
setNodeIntProperty
public boolean setNodeIntProperty(int node_index,
int property,
int value)
- Specified by:
setNodeIntPropertyin interfaceginy.view.GraphView
getEdgeIntProperty
public int getEdgeIntProperty(int edge_index,
int property)
- This method stores the primitive type wrapped in a Integer,
however a Integer can be returned, if you don't want to use the
Object property method.
- Specified by:
getEdgeIntPropertyin interfaceginy.view.GraphView
setEdgeIntProperty
public boolean setEdgeIntProperty(int edge_index,
int property,
int value)
- Specified by:
setEdgeIntPropertyin interfaceginy.view.GraphView
getNodeViewCount
public int getNodeViewCount()
- Specified by:
getNodeViewCountin interfaceginy.view.GraphView
getEdgeViewCount
public int getEdgeViewCount()
- Specified by:
getEdgeViewCountin interfaceginy.view.GraphView
getGraphPerspective
public giny.model.GraphPerspective getGraphPerspective()
- Specified by:
getGraphPerspectivein interfaceginy.view.GraphView
fitContent
public void fitContent()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
fitContentin interfaceginy.view.GraphView
getComponent
public java.awt.Component getComponent()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getComponentin interfaceginy.view.GraphView
getEdgeView
public giny.view.EdgeView getEdgeView(giny.model.Edge graph_edge)
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getEdgeViewin interfaceginy.view.GraphView
getEdgeViewsIterator
public java.util.Iterator getEdgeViewsIterator()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getEdgeViewsIteratorin interfaceginy.view.GraphView
getEdgeViewsList
public java.util.List getEdgeViewsList()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getEdgeViewsListin interfaceginy.view.GraphView
getEdgeViewsList
public java.util.List getEdgeViewsList(giny.model.Node one, giny.model.Node two)
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getEdgeViewsListin interfaceginy.view.GraphView
getNodeView
public giny.view.NodeView getNodeView(giny.model.Node graph_node)
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getNodeViewin interfaceginy.view.GraphView
getNodeViewsIterator
public java.util.Iterator getNodeViewsIterator()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getNodeViewsIteratorin interfaceginy.view.GraphView
getNodeViewsList
public java.util.List getNodeViewsList()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getNodeViewsListin interfaceginy.view.GraphView
getZoom
public double getZoom()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getZoomin interfaceginy.view.GraphView
setZoom
public void setZoom(double zoom)
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
setZoomin interfaceginy.view.GraphView
updateView
public void updateView()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
updateViewin interfaceginy.view.GraphView
setBackgroundPaint
public void setBackgroundPaint(java.awt.Paint paint)
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
setBackgroundPaintin interfaceginy.view.GraphView
getBackgroundPaint
public java.awt.Paint getBackgroundPaint()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getBackgroundPaintin interfaceginy.view.GraphView
getSelectedNodeIndices
public int[] getSelectedNodeIndices()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getSelectedNodeIndicesin interfaceginy.view.GraphView
getSelectedNodes
public java.util.List getSelectedNodes()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getSelectedNodesin interfaceginy.view.GraphView
getSelectedEdgeIndices
public int[] getSelectedEdgeIndices()
- Specified by:
getSelectedEdgeIndicesin interfaceginy.view.GraphView
getSelectedEdges
public java.util.List getSelectedEdges()
- NOT IMPLEMNTED IN THIS CLASS
- Specified by:
getSelectedEdgesin interfaceginy.view.GraphView
hideGraphObject
public boolean hideGraphObject(java.lang.Object object)
- Specified by:
hideGraphObjectin interfaceginy.view.GraphView
showGraphObject
public boolean showGraphObject(java.lang.Object object)
- Specified by:
showGraphObjectin interfaceginy.view.GraphView
hideGraphObjects
public boolean hideGraphObjects(java.util.List objects)
- Warning!!!!!!!
Only to be used for homogenous groups!!!!- Specified by:
hideGraphObjectsin interfaceginy.view.GraphView
showGraphObjects
public boolean showGraphObjects(java.util.List objects)
- Warning!!!!!!!
Only to be used for homogenous groups!!!!- Specified by:
showGraphObjectsin interfaceginy.view.GraphView
getEdgeView
public giny.view.EdgeView getEdgeView(int s)
- Specified by:
getEdgeViewin interfaceginy.view.GraphView
getNodeView
public giny.view.NodeView getNodeView(int s)
- Specified by:
getNodeViewin interfaceginy.view.GraphView
|
|||||||||
| Home >> All >> [ coltginy overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
coltginy.ColtGraphViewModel