Class GraphElementGraphicAttribute

All Implemented Interfaces:
Comparable<Object>, Attribute, CollectionAttribute, DeepCopy, GraphicAttributeConstants, Displayable
Direct Known Subclasses:
EdgeGraphicAttribute, NodeGraphicAttribute

public abstract class GraphElementGraphicAttribute
extends HashMapAttribute
implements GraphicAttributeConstants
Defines the common graphic attributes for nodes and edges
Version:
$Revision: 1.5 $
  • Constructor Details

    • 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, Image 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 Details

    • 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.
    • setRoundedEdges

      public void setRoundedEdges​(double rd)
    • setUseGradient

      public void setUseGradient​(double rd)
    • getFrameThickness

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

      public double getRoundedEdges()
      Returns the rounding of the edges.
      Returns:
      The rounding value of the edges
    • getUseGradient

      public double getUseGradient()
    • 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.
    • setOpacity

      public void setOpacity​(double value)
      Sets the opacity of a graph element (node or edge) This value will also influence the opacity of all dependent graph attribute components. Only values between 0.0 (transparent) and 1.0 (opaque) are allowed Values outside the allowed range are capped
    • getOpacity

      public double getOpacity()
      Returns the current opacity of this graph element
      Returns:
      opacity between 0.0 and 1.0