org.jgraph.graph.VertexRenderer Class Reference

Inheritance diagram for org.jgraph.graph.VertexRenderer:

org.jgraph.graph.CellViewRenderer List of all members.

Public Member Functions

 VertexRenderer ()
Component getRendererComponent (JGraph graph, CellView view, boolean sel, boolean focus, boolean preview)
void paint (Graphics g)
Point2D getPerimeterPoint (VertexView view, Point2D source, Point2D p)
void validate ()
void revalidate ()
void repaint (long tm, int x, int y, int width, int height)
void repaint (Rectangle r)
void firePropertyChange (String propertyName, byte oldValue, byte newValue)
void firePropertyChange (String propertyName, char oldValue, char newValue)
void firePropertyChange (String propertyName, short oldValue, short newValue)
void firePropertyChange (String propertyName, int oldValue, int newValue)
void firePropertyChange (String propertyName, long oldValue, long newValue)
void firePropertyChange (String propertyName, float oldValue, float newValue)
void firePropertyChange (String propertyName, double oldValue, double newValue)
void firePropertyChange (String propertyName, boolean oldValue, boolean newValue)
Color getGradientColor ()
void setGradientColor (Color gradientColor)

Protected Member Functions

void resetAttributes ()
void installAttributes (CellView view)
void paintSelectionBorder (Graphics g)
void firePropertyChange (String propertyName, Object oldValue, Object newValue)

Protected Attributes

transient VertexView view
transient boolean hasFocus
transient boolean selected
transient boolean preview
transient boolean childrenSelected
transient Color defaultForeground
transient Color defaultBackground
transient Color bordercolor
transient int borderWidth
transient boolean isDoubleBuffered = false
transient Color gradientColor = null
transient Color gridColor = Color.black
transient Color highlightColor = Color.black
transient Color lockedHandleColor = Color.black

Detailed Description

This renderer displays entries that implement the CellView interface and supports the following attributes. If the cell view is not a leaf, this object is only visible if it is selected. GraphConstants.BOUNDS GraphConstants.ICON GraphConstants.FONT GraphConstants.OPAQUE GraphConstants.BORDER GraphConstants.BORDERCOLOR GraphConstants.LINEWIDTH GraphConstants.FOREGROUND GraphConstants.BACKGROUND GraphConstants.VERTICAL_ALIGNMENT GraphConstants.HORIZONTAL_ALIGNMENT GraphConstants.VERTICAL_TEXT_POSITION GraphConstants.HORIZONTAL_TEXT_POSITION

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Constructor & Destructor Documentation

org.jgraph.graph.VertexRenderer.VertexRenderer  ) 
 

Constructs a renderer that may be used to render vertices.


Member Function Documentation

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
boolean  oldValue,
boolean  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
double  oldValue,
double  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
float  oldValue,
float  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
long  oldValue,
long  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
int  oldValue,
int  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
short  oldValue,
short  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
char  oldValue,
char  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
byte  oldValue,
byte  newValue
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.firePropertyChange String  propertyName,
Object  oldValue,
Object  newValue
[protected]
 

Overridden for performance reasons. See the Implementation Note for more information.

Color org.jgraph.graph.VertexRenderer.getGradientColor  ) 
 

Returns:
Returns the gradientColor.

Point2D org.jgraph.graph.VertexRenderer.getPerimeterPoint VertexView  view,
Point2D  source,
Point2D  p
 

Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p. The specified point is expected not to intersect the bounds.

Component org.jgraph.graph.VertexRenderer.getRendererComponent JGraph  graph,
CellView  view,
boolean  sel,
boolean  focus,
boolean  preview
 

Configure and return the renderer component based on the passed in cell. The value is typically set from messaging the graph with convertValueToString. We recommend you check the value's class and throw an illegal argument exception if it's not correct.

Parameters:
graph the graph that that defines the rendering context.
view the cell view that should be rendered.
sel whether the object is selected.
focus whether the object has the focus.
preview whether we are drawing a preview.
Returns:
the component used to render the value.

Implements org.jgraph.graph.CellViewRenderer.

void org.jgraph.graph.VertexRenderer.installAttributes CellView  view  )  [protected]
 

Install the attributes of specified cell in this renderer instance. This means, retrieve every published key from the cells hashtable and set global variables or superclass properties accordingly.

Parameters:
view the cell view to retrieve the attribute values from.

void org.jgraph.graph.VertexRenderer.paint Graphics  g  ) 
 

Paint the renderer. Overrides superclass paint to add specific painting.

void org.jgraph.graph.VertexRenderer.paintSelectionBorder Graphics  g  )  [protected]
 

Provided for subclassers to paint a selection border.

void org.jgraph.graph.VertexRenderer.repaint Rectangle  r  ) 
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.repaint long  tm,
int  x,
int  y,
int  width,
int  height
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.resetAttributes  )  [protected]
 

Hook for subclassers that is invoked when the installAttributes is not called to reset all attributes to the defaults.
Subclassers must invoke the superclass implementation.

void org.jgraph.graph.VertexRenderer.revalidate  ) 
 

Overridden for performance reasons. See the Implementation Note for more information.

void org.jgraph.graph.VertexRenderer.setGradientColor Color  gradientColor  ) 
 

Parameters:
gradientColor The gradientColor to set.

void org.jgraph.graph.VertexRenderer.validate  ) 
 

Overridden for performance reasons. See the Implementation Note for more information.


Member Data Documentation

transient Color org.jgraph.graph.VertexRenderer.bordercolor [protected]
 

transient int org.jgraph.graph.VertexRenderer.borderWidth [protected]
 

Cached borderwidth.

transient boolean org.jgraph.graph.VertexRenderer.childrenSelected [protected]
 

transient Color org.jgraph.graph.VertexRenderer.defaultBackground [protected]
 

transient Color org.jgraph.graph.VertexRenderer.defaultForeground [protected]
 

Cached default foreground and default background.

transient Color org.jgraph.graph.VertexRenderer.gradientColor = null [protected]
 

transient Color org.jgraph.graph.VertexRenderer.gridColor = Color.black [protected]
 

transient boolean org.jgraph.graph.VertexRenderer.hasFocus [protected]
 

Cached hasFocus and selected value.

transient Color org.jgraph.graph.VertexRenderer.highlightColor = Color.black [protected]
 

transient boolean org.jgraph.graph.VertexRenderer.isDoubleBuffered = false [protected]
 

Cached value of the double buffered state

transient Color org.jgraph.graph.VertexRenderer.lockedHandleColor = Color.black [protected]
 

transient boolean org.jgraph.graph.VertexRenderer.preview [protected]
 

transient boolean org.jgraph.graph.VertexRenderer.selected [protected]
 

transient VertexView org.jgraph.graph.VertexRenderer.view [protected]
 

Cache the current shape for drawing.


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:17 2006 for Digimod by  doxygen 1.4.6-NO