Package org.graffiti.graphics
Class EdgeGraphicAttribute
java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.AbstractCollectionAttribute
org.graffiti.attributes.HashMapAttribute
org.graffiti.graphics.GraphElementGraphicAttribute
org.graffiti.graphics.EdgeGraphicAttribute
- All Implemented Interfaces:
- Comparable<Object>,- Attribute,- CollectionAttribute,- DeepCopy,- GraphicAttributeConstants,- Displayable
public class EdgeGraphicAttribute extends GraphElementGraphicAttribute
Defines all graphic attributes of an edge
- Version:
- $Revision: 1.8 $
- Author:
- breu
- 
Field SummaryFields inherited from interface org.graffiti.graphics.GraphicAttributeConstantsABOVE, ABOVELEFT, ABOVERIGHT, ABSHOR, ABSVERT, ALIGNMENT, ALIGNSEGMENT, ANCHOR, ARROWHEAD, ARROWTAIL, AUTO_OUTSIDE, AXISCOLOR, BELOW, BELOWLEFT, BELOWRIGHT, BENDS, BENDS_PATH, BGIMAGE, BLUE, BORDER_BOTTOM_CENTER, BORDER_BOTTOM_LEFT, BORDER_BOTTOM_RIGHT, BORDER_LEFT_BOTTOM, BORDER_LEFT_CENTER, BORDER_LEFT_TOP, BORDER_RIGHT_BOTTOM, BORDER_RIGHT_CENTER, BORDER_RIGHT_TOP, BORDER_TOP_CENTER, BORDER_TOP_LEFT, BORDER_TOP_RIGHT, CATEGORY_BACKGROUND_A, CATEGORY_BACKGROUND_B, CATEGORY_BACKGROUND_C, CENTERED, CENTERED_FIT, CHARTBACKGROUNDCOLOR, CIRCLE_CLASSNAME, COLOR, COMMON, COORD_PATH, COORDINATE, COORDX_PATH, COORDY_PATH, CUBICSPLINE, CUBICSPLINE_CLASSNAME, DEFAULT_CAP_B, DEFAULT_CAP_R, DEFAULT_JOIN, DEFAULT_MITER, DIM_PATH, DIMENSION, DIMH_PATH, DIMW_PATH, DOCKING, DOCKING_PATH, ELLIPSE_CLASSNAME, FILLCOLOR, FILLCOLOR_PATH, FONTNAME, FONTSIZE, FONTSTYLE, FRAMECOLOR, FRAMETHICKNESS, FRAMETHICKNESS_PATH, GRADIENT, GRAPHICS, GREEN, GRIDCOLOR, HEATMAP_LOWER_COL, HEATMAP_MIDDLE_COL, HEATMAP_UPPER_COL, HEIGHT, HIDDEN, IMAGE, IN, INSIDEBOTTOM, INSIDEBOTTOMLEFT, INSIDEBOTTOMRIGHT, INSIDELEFT, INSIDERIGHT, INSIDETOP, INSIDETOPLEFT, INSIDETOPRIGHT, LABEL, LABEL_ATTRIBUTE_PATH, LABEL_DISTANCE, LABELGRAPHICS, LABELOFFSET, LEFT, LINEMODE, LINETYPE, LINEWIDTH_PATH, LOCALALIGN, MAXIMIZE, NAME, NEARSOURCE, NEARTARGET, OPAC, OUT, OUTLINE_PATH, POLYCLOSED_CLASSNAME, POLYLINE, POLYLINE_CLASSNAME, PORT, PORTS, PORTS_PATH, POSITION, RECTANGLE_CLASSNAME, RED, REF, RELALIGN, RELHOR, RELVERT, RIGHT, ROUNDING, SHADOWCOLOR, SHADOWOFFSET, SHAPE, SHAPE_DESC_PATH, SHAPE_PATH, SHAPEDESCRIPTION, SMOOTH_CLASSNAME, SMOOTHLINE, SOURCE, SQUARESPLINE, SQUARESPLINE_CLASSNAME, STRAIGHTLINE, STRAIGHTLINE_CLASSNAME, TARGET, TEXTCOLOR, THICKNESS, TILED, WIDTH, X, Y
- 
Constructor SummaryConstructors Constructor Description EdgeGraphicAttribute()Constructs an EdgeGraphicAttribute and initializes all its members.EdgeGraphicAttribute(String ah, String at, double t, DockingAttribute d)Constructs an EdgeGraphicAttribute and initializes all its members.EdgeGraphicAttribute(String ah, String at, double t, DockingAttribute d, LinkedHashMapAttribute b, String lt)Constructs an EdgeGraphicAttribute and initializes all its members.EdgeGraphicAttribute(String ah, String at, DoubleAttribute t, DockingAttribute d)Constructs an EdgeGraphicAttribute and initializes all its members.EdgeGraphicAttribute(StringAttribute ah, StringAttribute at, double t, DockingAttribute d)Constructs an EdgeGraphicAttribute and initializes all its members.
- 
Method SummaryModifier and Type Method Description Objectcopy()Returns a deep copy of this object.StringgetArrowhead()Returns the 'arrowhead'-value of the encapsulated edge.StringgetArrowtail()Returns the 'arrowtail'-value of the encapsulated edge.Collection<Attribute>getBendAttributes()intgetBendCount()SortedCollectionAttributegetBends()Returns the collection ofCoordinateAttributes specifying the bends for this edge.DockingAttributegetDocking()Returns the 'docking'-value of the encapsulated edge.StringgetLineType()Returns the line type.doublegetThickness()Returns the 'thickness'-value of the encapsulated edge.voidsetArrowhead(String ah)Sets the 'arrowhead'-value.voidsetArrowtail(String at)Sets the 'arrowtail'-value.voidsetBends(SortedCollectionAttribute b)Sets the 'bends'-value.voidsetCollection(Map<String,Attribute> attrs)Sets the collection of attributes contained within this CollectionAttributevoidsetDocking(DockingAttribute d)Sets the 'docking'-value.voidsetLineType(String l)DOCUMENT ME!voidsetThickness(double t)Sets the 'thickness'-value.Methods inherited from class org.graffiti.graphics.GraphElementGraphicAttributegetBackgroundImage, getFillcolor, getFramecolor, getFrameThickness, getLineMode, getOpacity, getRoundedEdges, getShape, getUseGradient, setBackgroundImage, setFillcolor, setFramecolor, setFrameThickness, setLineMode, setOpacity, setRoundedEdges, setShape, setUseGradientMethods inherited from class org.graffiti.attributes.HashMapAttributecompareTo, getCollection, setDefaultValue, sizeMethods inherited from class org.graffiti.attributes.AbstractCollectionAttributeadd, add, getAttributable, getAttribute, getValue, isEmpty, remove, remove, setAttributable, toString, toXMLStringMethods inherited from class org.graffiti.attributes.AbstractAttributeaddEdgeAttributeType, addNodeAttributeType, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isDeleted, isTypedAttributeFromID, setDeleted, setDescription, setId, setParent, setValue, toStringMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graffiti.attributes.AttributegetAttributable, getId, getParent, getPath, getValue, isDeleted, setDeleted, setId, setParent, setValue, toStringMethods inherited from interface org.graffiti.attributes.CollectionAttributeadd, add, getAttribute, isEmpty, remove, remove, setAttributableMethods inherited from interface org.graffiti.plugin.DisplayablegetDescription, getIcon, getName, setDescription, toXMLString
- 
Constructor Details- 
EdgeGraphicAttributepublic EdgeGraphicAttribute(String ah, String at, double t, DockingAttribute d, LinkedHashMapAttribute b, String lt)Constructs an EdgeGraphicAttribute and initializes all its members.- Parameters:
- ah- the arrowhead-value of the attribute.
- at- the arrowtail-value of the attribute.
- t- the thickness-value of the attribute.
- d- the docking-value of the attribute.
- b- the- CollectionAttriubtecontaining the bends.
- lt- the lineType of the edge.
 
- 
EdgeGraphicAttributeConstructs an EdgeGraphicAttribute and initializes all its members.- Throws:
- IllegalIdException
 
- 
EdgeGraphicAttributepublic EdgeGraphicAttribute(String ah, String at, double t, DockingAttribute d) throws IllegalIdExceptionConstructs an EdgeGraphicAttribute and initializes all its members.- Parameters:
- ah- the arrowhead-value of the attribute.
- at- the arrowtail-value of the attribute.
- t- the thickness-value of the attribute.
- d- the docking-value of the attribute.
- Throws:
- IllegalIdException
 
- 
EdgeGraphicAttributepublic EdgeGraphicAttribute(String ah, String at, DoubleAttribute t, DockingAttribute d) throws IllegalIdExceptionConstructs an EdgeGraphicAttribute and initializes all its members.- Parameters:
- ah- the arrowhead-value of the attribute.
- at- the arrowtail-value of the attribute.
- t- the thickness-value of the attribute.
- d- the docking-value of the attribute.
- Throws:
- IllegalIdException
 
- 
EdgeGraphicAttributepublic EdgeGraphicAttribute(StringAttribute ah, StringAttribute at, double t, DockingAttribute d) throws IllegalIdExceptionConstructs an EdgeGraphicAttribute and initializes all its members.- Parameters:
- ah- the arrowhead-value of the attribute.
- at- the arrowtail-value of the attribute.
- t- the thickness-value of the attribute.
- d- the docking-value of the attribute.
- Throws:
- IllegalIdException
 
 
- 
- 
Method Details- 
setArrowheadSets the 'arrowhead'-value.- Parameters:
- ah- the 'arrowhead'-value to be set.
 
- 
getArrowheadReturns the 'arrowhead'-value of the encapsulated edge.- Returns:
- the 'arrowhead'-value of the encapsulated edge.
 
- 
setArrowtailSets the 'arrowtail'-value.- Parameters:
- at- the 'arrowtail'-value to be set.
 
- 
getArrowtailReturns the 'arrowtail'-value of the encapsulated edge.- Returns:
- the 'arrowtail'-value of the encapsulated edge.
 
- 
setBendsSets the 'bends'-value.- Parameters:
- b- the 'bends'-value to be set.
 
- 
getBendsReturns the collection ofCoordinateAttributes specifying the bends for this edge.- Returns:
- the collection of CoordinateAttributes specifying the bends for this edge.
 
- 
setCollectionSets the collection of attributes contained within this CollectionAttribute- Specified by:
- setCollectionin interface- CollectionAttribute
- Overrides:
- setCollectionin class- HashMapAttribute
- Parameters:
- attrs- the map that contains all attributes.
- Throws:
- IllegalArgumentException- DOCUMENT ME!
 
- 
setDockingSets the 'docking'-value.- Parameters:
- d- the 'docking'-value to be set.
 
- 
getDockingReturns the 'docking'-value of the encapsulated edge.- Returns:
- the 'docking'-value of the encapsulated edge.
 
- 
setLineTypeDOCUMENT ME!- Parameters:
- l-
 
- 
getLineTypeReturns the line type.- Returns:
- DOCUMENT ME!
 
- 
setThicknesspublic void setThickness(double t)Sets the 'thickness'-value.- Parameters:
- t- the 'thickness'-value of the encapsulated edge.
 
- 
getThicknesspublic double getThickness()Returns the 'thickness'-value of the encapsulated edge.- Returns:
- the 'thickness'-value of the encapsulated edge.
 
- 
copyReturns a deep copy of this object.- Specified by:
- copyin interface- DeepCopy
- Overrides:
- copyin class- HashMapAttribute
- Returns:
- A deep copy of this object.
 
- 
getBendAttributes
- 
getBendCountpublic int getBendCount()
 
-