Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

coltginy
Class ColtGraphViewModel  view ColtGraphViewModel download ColtGraphViewModel.java

java.lang.Object
  extended bycoltginy.ColtGraphViewModel
All Implemented Interfaces:
giny.view.GraphView

public class ColtGraphViewModel
extends java.lang.Object
implements giny.view.GraphView

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:
setAllNodePropertyData in interface giny.view.GraphView

getAllNodePropertyData

public java.lang.Object[] getAllNodePropertyData(int node_index)
Specified by:
getAllNodePropertyData in interface giny.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:
setAllEdgePropertyData in interface giny.view.GraphView

getAllEdgePropertyData

public java.lang.Object[] getAllEdgePropertyData(int edge_index)
Specified by:
getAllEdgePropertyData in interface giny.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:
getNodeObjectProperty in interface giny.view.GraphView

setNodeObjectProperty

public boolean setNodeObjectProperty(int node_index,
                                     int property,
                                     java.lang.Object value)
Specified by:
setNodeObjectProperty in interface giny.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:
getEdgeObjectProperty in interface giny.view.GraphView

setEdgeObjectProperty

public boolean setEdgeObjectProperty(int edge_index,
                                     int property,
                                     java.lang.Object value)
Specified by:
setEdgeObjectProperty in interface giny.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:
getNodeDoubleProperty in interface giny.view.GraphView

setNodeDoubleProperty

public boolean setNodeDoubleProperty(int node_index,
                                     int property,
                                     double value)
Specified by:
setNodeDoubleProperty in interface giny.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:
getEdgeDoubleProperty in interface giny.view.GraphView

setEdgeDoubleProperty

public boolean setEdgeDoubleProperty(int edge_index,
                                     int property,
                                     double value)
Specified by:
setEdgeDoubleProperty in interface giny.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:
getNodeFloatProperty in interface giny.view.GraphView

setNodeFloatProperty

public boolean setNodeFloatProperty(int node_index,
                                    int property,
                                    float value)
Specified by:
setNodeFloatProperty in interface giny.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:
getEdgeFloatProperty in interface giny.view.GraphView

setEdgeFloatProperty

public boolean setEdgeFloatProperty(int edge_index,
                                    int property,
                                    float value)
Specified by:
setEdgeFloatProperty in interface giny.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:
getNodeBooleanProperty in interface giny.view.GraphView

setNodeBooleanProperty

public boolean setNodeBooleanProperty(int node_index,
                                      int property,
                                      boolean value)
Specified by:
setNodeBooleanProperty in interface giny.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:
getEdgeBooleanProperty in interface giny.view.GraphView

setEdgeBooleanProperty

public boolean setEdgeBooleanProperty(int edge_index,
                                      int property,
                                      boolean value)
Specified by:
setEdgeBooleanProperty in interface giny.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:
getNodeIntProperty in interface giny.view.GraphView

setNodeIntProperty

public boolean setNodeIntProperty(int node_index,
                                  int property,
                                  int value)
Specified by:
setNodeIntProperty in interface giny.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:
getEdgeIntProperty in interface giny.view.GraphView

setEdgeIntProperty

public boolean setEdgeIntProperty(int edge_index,
                                  int property,
                                  int value)
Specified by:
setEdgeIntProperty in interface giny.view.GraphView

getNodeViewCount

public int getNodeViewCount()
Specified by:
getNodeViewCount in interface giny.view.GraphView

getEdgeViewCount

public int getEdgeViewCount()
Specified by:
getEdgeViewCount in interface giny.view.GraphView

getGraphPerspective

public giny.model.GraphPerspective getGraphPerspective()
Specified by:
getGraphPerspective in interface giny.view.GraphView

fitContent

public void fitContent()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
fitContent in interface giny.view.GraphView

getComponent

public java.awt.Component getComponent()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getComponent in interface giny.view.GraphView

getEdgeView

public giny.view.EdgeView getEdgeView(giny.model.Edge graph_edge)
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getEdgeView in interface giny.view.GraphView

getEdgeViewsIterator

public java.util.Iterator getEdgeViewsIterator()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getEdgeViewsIterator in interface giny.view.GraphView

getEdgeViewsList

public java.util.List getEdgeViewsList()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getEdgeViewsList in interface giny.view.GraphView

getEdgeViewsList

public java.util.List getEdgeViewsList(giny.model.Node one,
                                       giny.model.Node two)
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getEdgeViewsList in interface giny.view.GraphView

getNodeView

public giny.view.NodeView getNodeView(giny.model.Node graph_node)
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getNodeView in interface giny.view.GraphView

getNodeViewsIterator

public java.util.Iterator getNodeViewsIterator()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getNodeViewsIterator in interface giny.view.GraphView

getNodeViewsList

public java.util.List getNodeViewsList()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getNodeViewsList in interface giny.view.GraphView

getZoom

public double getZoom()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getZoom in interface giny.view.GraphView

setZoom

public void setZoom(double zoom)
NOT IMPLEMNTED IN THIS CLASS

Specified by:
setZoom in interface giny.view.GraphView

updateView

public void updateView()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
updateView in interface giny.view.GraphView

setBackgroundPaint

public void setBackgroundPaint(java.awt.Paint paint)
NOT IMPLEMNTED IN THIS CLASS

Specified by:
setBackgroundPaint in interface giny.view.GraphView

getBackgroundPaint

public java.awt.Paint getBackgroundPaint()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getBackgroundPaint in interface giny.view.GraphView

getSelectedNodeIndices

public int[] getSelectedNodeIndices()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getSelectedNodeIndices in interface giny.view.GraphView

getSelectedNodes

public java.util.List getSelectedNodes()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getSelectedNodes in interface giny.view.GraphView

getSelectedEdgeIndices

public int[] getSelectedEdgeIndices()
Specified by:
getSelectedEdgeIndices in interface giny.view.GraphView

getSelectedEdges

public java.util.List getSelectedEdges()
NOT IMPLEMNTED IN THIS CLASS

Specified by:
getSelectedEdges in interface giny.view.GraphView

hideGraphObject

public boolean hideGraphObject(java.lang.Object object)
Specified by:
hideGraphObject in interface giny.view.GraphView

showGraphObject

public boolean showGraphObject(java.lang.Object object)
Specified by:
showGraphObject in interface giny.view.GraphView

hideGraphObjects

public boolean hideGraphObjects(java.util.List objects)
Warning!!!!!!!
Only to be used for homogenous groups!!!!

Specified by:
hideGraphObjects in interface giny.view.GraphView

showGraphObjects

public boolean showGraphObjects(java.util.List objects)
Warning!!!!!!!
Only to be used for homogenous groups!!!!

Specified by:
showGraphObjects in interface giny.view.GraphView

getEdgeView

public giny.view.EdgeView getEdgeView(int s)
Specified by:
getEdgeView in interface giny.view.GraphView

getNodeView

public giny.view.NodeView getNodeView(int s)
Specified by:
getNodeView in interface giny.view.GraphView