org.graffiti.graphics
Class GraphElementGraphicAttribute

java.lang.Object
  extended by org.graffiti.attributes.AbstractAttribute
      extended by org.graffiti.attributes.AbstractCollectionAttribute
          extended by org.graffiti.attributes.HashMapAttribute
              extended by org.graffiti.graphics.GraphElementGraphicAttribute
All Implemented Interfaces:
Attribute, CollectionAttribute, DeepCopy, GraphicAttributeConstants, Displayable<Object>
Direct Known Subclasses:
EdgeGraphicAttribute, NodeGraphicAttribute

public abstract class GraphElementGraphicAttribute
extends HashMapAttribute
implements GraphicAttributeConstants

Defines the common graphic attributes for nodes and edges

Version:
$Revision: 5768 $

Field Summary
protected  ImageAttribute backgroundImage
          The background image of the graph element
protected  ColorAttribute fillcolor
          Color to fill the edge
protected  ColorAttribute framecolor
          Color of the graph element frame
protected  DoubleAttribute frameThickness
          Thickness of the graph element frame.
protected  LineModeAttribute lineMode
          Mode of the frame line, e.g.
protected  StringAttribute shape
          Holds the shape of this edge.
 
Fields inherited from class org.graffiti.attributes.AbstractCollectionAttribute
attributes
 
Fields inherited from class org.graffiti.attributes.AbstractAttribute
id
 
Fields inherited from interface org.graffiti.graphics.GraphicAttributeConstants
ABSOLUTE_X_OFFSET, ABSOLUTE_Y_OFFSET, ALIGNMENT, ALIGNMENT_SEGMENT, ALIGNMENT_X, ALIGNMENT_Y, ARROWHEAD, ARROWSHAPE_CLASSNAME, ARROWTAIL, BEND, BENDS, BENDS_PATH, BGIMAGE, BGIMAGE_PATH, BLUE, BOTTOM_INSIDE, BOTTOM_OUTSIDE, CENTERED, CIRCLE_CENTER, CIRCLE_CENTER_PATH, CIRCLE_CLASSNAME, CIRCLE_LINE_SEGMENTATION_CLASSNAME, CIRCLE_LINE_SEGMENTATION_SHAPE, COMMON, COORD_PATH, COORDINATE, COORDX_PATH, COORDY_PATH, COORDZ_PATH, CUBICSPLINE, CUBICSPLINE_CLASSNAME, DEFAULT_CAP, DEFAULT_EDGE_FILLCOLOR, DEFAULT_EDGE_FRAMECOLOR, DEFAULT_EDGE_FRAMETHICKNESS, DEFAULT_EDGE_THICKNESS, DEFAULT_FONT_SIZE, DEFAULT_GRAPHIC_ELEMENT_FRAMECOLOR, DEFAULT_GRAPHIC_ELEMENT_FRAMETHICKNESS, DEFAULT_JOIN, DEFAULT_MAX_WIDTH, DEFAULT_MITER, DEFAULT_NODE_FILLCOLOR, DEFAULT_NODE_FRAMECOLOR, DEFAULT_NODE_FRAMETHICKNESS, DEFAULT_NODE_SHAPE, DEFAULT_NODE_SIZE, DEPTH, DEPTH_PATH, DIM_PATH, DIMENSION, DIMH_PATH, DIMW_PATH, DOCKING, DOCKING_PATH, EDGE, ELLIPSE_CLASSNAME, END_ANGLE, FILLCOLOR, FILLCOLOR_PATH, FONT, FONT_SIZE, FRAMECOLOR, FRAMETHICKNESS, FRAMETHICKNESS_PATH, GRAPHICS, GREEN, GRID, GRID_PATH, HEIGHT, IMAGE, IN, INTRA_LEVEL_CLASSNAME, LABEL, LABEL_ATTRIBUTE_PATH, LABEL_DISTANCE, LEFT_INSIDE, LEFT_OUTSIDE, LEVEL, LINE_POINT_PATH, LINEMODE, LINEMODE_PATH, LINETYPE, LINEWIDTH_PATH, MAX_WIDTH, MAXIMIZE, NAME, NEARSOURCE, NEARTARGET, NODE, OFFSET, OPAC, OUT, OUTLINE_PATH, POLYCLOSED_CLASSNAME, POLYLINE, POLYLINE_CLASSNAME, PORT, PORTS, PORTS_PATH, POSITION, QUAD_CURVE_EDGE_SHAPE, RECTANGLE_CLASSNAME, RED, REF, RELATIVE_ALIGNMENT, RELATIVE_X_OFFSET, RELATIVE_Y_OFFSET, RIGHT_INSIDE, RIGHT_OUTSIDE, ROTATION, SHAPE, SHAPE_DESC_PATH, SHAPE_PATH, SHAPEDESCRIPTION, SMOOTH_CLASSNAME, SMOOTH_LINE_EDGE_SHAPE, SMOOTHLINE, SOURCE, SPIRAL_CLASSNAME, SQUARESPLINE, SQUARESPLINE_CLASSNAME, START_ANGLE, STRAIGHT_LINE_EDGE_SHAPE, STRAIGHTLINE, STRAIGHTLINE_CLASSNAME, TARGET, TEXTCOLOR, THICKNESS, THICKNESS_PATH, TILED, TOP_INSIDE, TOP_OUTSIDE, WIDTH, X, Y, Z
 
Fields inherited from interface org.graffiti.attributes.Attribute
SEPARATOR
 
Constructor Summary
GraphElementGraphicAttribute(String id)
          Constructor for GraphElementGraphicAttribute.
GraphElementGraphicAttribute(String id, BufferedImage i, Color frc, Color fic, LabelAttribute l, double ft, LineModeAttribute lm, String s)
          Constructor for GraphElementGraphicAttribute.
GraphElementGraphicAttribute(String id, ImageAttribute i, ColorAttribute frc, ColorAttribute fic, LabelAttribute l, DoubleAttribute ft, LineModeAttribute lm, StringAttribute s)
          Constructor for GraphElementGraphicAttribute.
 
Method Summary
 ImageAttribute getBackgroundImage()
          Returns the 'backgroundimage'-value of the encapsulated edge.
 ColorAttribute getFillcolor()
          Returns the 'fillcolor'-value of the encapsulated edge.
 ColorAttribute getFramecolor()
          Returns the 'framecolor'-value of the encapsulated edge.
 double getFrameThickness()
          Returns the 'frameThickness'-value of the encapsulated edge.
 LineModeAttribute getLineMode()
          Returns the 'lineMode'-value of the encapsulated edge.
 String getShape()
          Returns the 'shape'-value of the encapsulated edge.
 void setBackgroundImage(ImageAttribute bgi)
          Sets the 'backgroundimage'-value.
 void setFillcolor(ColorAttribute fic)
          Sets the 'fillcolor'-value.
 void setFramecolor(ColorAttribute frc)
          Sets the 'framecolor'-value.
 void setFrameThickness(double ft)
          Sets the 'frameThickness'-value.
 void setLineMode(LineModeAttribute lma)
          Sets the 'lineMode'-value.
 void setShape(String sn)
          Sets the 'shape'-value.
 
Methods inherited from class org.graffiti.attributes.HashMapAttribute
copy, doSetValue, getCollection, setCollection, setDefaultValue
 
Methods inherited from class org.graffiti.attributes.AbstractCollectionAttribute
add, add, containsAttribute, getAttributable, getAttribute, getValue, isEmpty, remove, remove, setAttributable, toString, toXMLString
 
Methods inherited from class org.graffiti.attributes.AbstractAttribute
callPostAttributeAdded, callPostAttributeChanged, callPostAttributeRemoved, callPreAttributeAdded, callPreAttributeChanged, callPreAttributeRemoved, getDescription, getId, getName, getParent, getPath, getSpaces, getStandardXML, setDescription, setParent, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.graffiti.attributes.CollectionAttribute
add, add, containsAttribute, getAttribute, isEmpty, remove, remove, setAttributable
 
Methods inherited from interface org.graffiti.attributes.Attribute
getAttributable, getId, getParent, getPath, getValue, setParent, setValue, toString
 
Methods inherited from interface org.graffiti.plugin.Displayable
getDescription, getName, setDescription, toXMLString
 

Field Detail

fillcolor

protected ColorAttribute fillcolor
Color to fill the edge


framecolor

protected ColorAttribute framecolor
Color of the graph element frame


frameThickness

protected DoubleAttribute frameThickness
Thickness of the graph element frame.


backgroundImage

protected ImageAttribute backgroundImage
The background image of the graph element


lineMode

protected LineModeAttribute lineMode
Mode of the frame line, e.g. dashed


shape

protected StringAttribute shape
Holds the shape of this edge.

Constructor Detail

GraphElementGraphicAttribute

public GraphElementGraphicAttribute(String id)
                             throws IllegalIdException
Constructor for GraphElementGraphicAttribute.

Parameters:
id -
Throws:
IllegalIdException

GraphElementGraphicAttribute

public GraphElementGraphicAttribute(String id,
                                    ImageAttribute i,
                                    ColorAttribute frc,
                                    ColorAttribute fic,
                                    LabelAttribute l,
                                    DoubleAttribute ft,
                                    LineModeAttribute lm,
                                    StringAttribute s)
                             throws IllegalIdException
Constructor for GraphElementGraphicAttribute.

Parameters:
id - the id of the attribute.
i - the backgroundimage-value of the attriubte
frc - the framecolor-value of the attribute.
fic - the fillcolor-value of the attribute.
l - DOCUMENT ME!
ft - the framethickness-value of the attribute.
lm - the linemode-value of the attribute.
s - DOCUMENT ME!
Throws:
IllegalIdException

GraphElementGraphicAttribute

public GraphElementGraphicAttribute(String id,
                                    BufferedImage i,
                                    Color frc,
                                    Color fic,
                                    LabelAttribute l,
                                    double ft,
                                    LineModeAttribute lm,
                                    String s)
                             throws IllegalIdException
Constructor for GraphElementGraphicAttribute.

Parameters:
id - the id of the attribute.
i - the backgroundimage-value of the attriubte
frc - the framecolor-value of the attribute.
fic - the fillcolor-value of the attribute.
l - DOCUMENT ME!
ft - the framethickness-value of the attribute.
lm - the linemode-value of the attribute.
s - DOCUMENT ME!
Throws:
IllegalIdException
Method Detail

setBackgroundImage

public void setBackgroundImage(ImageAttribute bgi)
Sets the 'backgroundimage'-value.

Parameters:
bgi - the 'backgroundimage'-value to be set.

getBackgroundImage

public ImageAttribute getBackgroundImage()
Returns the 'backgroundimage'-value of the encapsulated edge.

Returns:
the 'backgroundimage'-value of the encapsulated edge.

setFillcolor

public void setFillcolor(ColorAttribute fic)
Sets the 'fillcolor'-value.

Parameters:
fic - the 'fillcolor'-value to be set.

getFillcolor

public ColorAttribute getFillcolor()
Returns the 'fillcolor'-value of the encapsulated edge.

Returns:
the 'fillcolor'-value of the encapsulated edge.

setFrameThickness

public void setFrameThickness(double ft)
Sets the 'frameThickness'-value.

Parameters:
ft - the 'frameThickness'-value to be set.

getFrameThickness

public double getFrameThickness()
Returns the 'frameThickness'-value of the encapsulated edge.

Returns:
the 'frameThickness'-value of the encapsulated edge.

setFramecolor

public void setFramecolor(ColorAttribute frc)
Sets the 'framecolor'-value.

Parameters:
frc - the 'framecolor'-valueto be set.

getFramecolor

public ColorAttribute getFramecolor()
Returns the 'framecolor'-value of the encapsulated edge.

Returns:
the 'framecolor'-value of the encapsulated edge.

setLineMode

public void setLineMode(LineModeAttribute lma)
Sets the 'lineMode'-value.

Parameters:
lma - the 'lineMode'-value to be set.

getLineMode

public LineModeAttribute getLineMode()
Returns the 'lineMode'-value of the encapsulated edge.

Returns:
the 'lineMode'-value of the encapsulated edge.

setShape

public void setShape(String sn)
Sets the 'shape'-value.

Parameters:
sn - the 'shape'-value to be set.

getShape

public String getShape()
Returns the 'shape'-value of the encapsulated edge.

Returns:
the 'shape'-value of the encapsulated edge.


Generated at 2012-05-30 11:00:36 PM CEST