Class PointSet2DInt

All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.lang.Cloneable, java.lang.Comparable<InterfaceShape>, AttributeListener, AttributeObject, InterfaceObject, PersistentObject, VariableObject, PopupMenuObject, NamedObject, InterfaceQueryObject, InterfaceShapeQueryObject, ShapeListener, VertexDataColumnListener, InterfaceTransferable, TreeObject, CleanableObject, XMLObject, IconObject
Direct Known Subclasses:
Graph2DInt

public class PointSet2DInt
extends Shape2DInt
Shape interface for a set of 2D vertices.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • nameMaps

      public java.util.HashMap<java.lang.String,​NameMap> nameMaps
    • constraints

      public boolean[] constraints
  • Constructor Details

    • PointSet2DInt

      public PointSet2DInt()
    • PointSet2DInt

      public PointSet2DInt​(PointSet2D point_set)
  • Method Details

    • isInheritingAttribute

      public boolean isInheritingAttribute​(Attribute<?> attribute)
      Description copied from class: InterfaceShape
      Does this child attribute inherit values from a parent shape?
      Overrides:
      isInheritingAttribute in class Shape2DInt
      Returns:
    • setIcon

      protected void setIcon()
      Overrides:
      setIcon in class Shape2DInt
    • getVertexShape

      protected NodeShape getVertexShape​(AbstractGraphNode vertex)
    • getLabelPosition

      protected edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel.Position getLabelPosition()
    • draw

      public void draw​(java.awt.Graphics2D g, DrawingEngine d)
      Overrides:
      draw in class Shape2DInt
    • setColourMap

      public void setColourMap​(ColourMap cm)
      Description copied from class: InterfaceShape
      Sets the colour map for the current column.
      Overrides:
      setColourMap in class InterfaceShape
    • setColourMap

      public void setColourMap​(ColourMap cm, boolean update)
    • getColourMap

      public ColourMap getColourMap()
      Description copied from class: InterfaceShape
      Returns the ColourMap associated with the current data column. If there is no associated colour map, returns the default colour map for this shape.
      Overrides:
      getColourMap in class InterfaceShape
      Returns:
    • getCurrentColumn

      public java.lang.String getCurrentColumn()
      Description copied from class: InterfaceShape
      Returns the name of the current data column
      Overrides:
      getCurrentColumn in class Shape2DInt
      Returns:
    • getDataMin

      public double getDataMin()
      Overrides:
      getDataMin in class InterfaceShape
    • getDataMax

      public double getDataMax()
      Overrides:
      getDataMax in class InterfaceShape
    • getVertexScale

      public float getVertexScale()
      Description copied from class: InterfaceShape
      Returns the scale of this shape's vertices
      Overrides:
      getVertexScale in class Shape2DInt
      Returns:
    • setDataMin

      public void setDataMin​(double d)
      Description copied from class: InterfaceShape
      Sets the data minimum for the current column, and fires an event
      Overrides:
      setDataMin in class InterfaceShape
    • setDataMax

      public void setDataMax​(double d)
      Description copied from class: InterfaceShape
      Sets the data maximum for the current column, and fires an event
      Overrides:
      setDataMax in class InterfaceShape
    • getPointSet

      public PointSet2D getPointSet()
    • needsRedraw

      public boolean needsRedraw​(Attribute<?> a)
      Description copied from class: InterfaceShape
      Returns true if a change to attribute will require a redraw of this shape.
      Overrides:
      needsRedraw in class Shape2DInt
      Returns: