Class ProportionalSymbol

All Implemented Interfaces:
Overlay, Serializable, Cloneable

public class ProportionalSymbol extends ProportionalQuantities implements Overlay, Cloneable
This is a subclass of the abstract class ProportionnalQuantities.
See Also:
  • Constructor Details

    • ProportionalSymbol

      public ProportionalSymbol()
    • ProportionalSymbol

      public ProportionalSymbol(String name, String description, Style minStyle, Style maxStyle, AbstractThematicLegendPanel legend, AttributeStat[] stats, int[] attributeIndexes)
      Parameters:
      name - the thematic name
      description - the thematic description name
      minStyle - the style applied to the minimum value
      maxStyle - the style applied to the maximum value
      legend - the legend
      stats - the attributeStat instance that keep different information on the values used to separate the categories.
      attributeIndexes - the indexes of the attributes in the table (only one here, represents the attribute needed to mahe the thematic)
  • Method Details

    • getMaxStyle

      public Style getMaxStyle()
      Returns:
      Returns the maxStyle.
    • setMaxStyle

      public void setMaxStyle(Style maxStyle)
      Parameters:
      maxStyle - The maxStyle to set.
    • getMinStyle

      public Style getMinStyle()
      Returns:
      Returns the minStyle.
    • setMinStyle

      public void setMinStyle(Style minStyle)
      Parameters:
      minStyle - The minStyle to set.
    • drawThematicElement

      public void drawThematicElement(K2DElement elem, GraphicsRef gr, K2DTransform t)
      Description copied from interface: Overlay
      Draws the geometry with the appropriate style based on the attribute values of the specified element.
      Specified by:
      drawThematicElement in interface Overlay
      Parameters:
      elem - the element on which the thematic is applied
      gr - the graphics reference object to be used to draw
      t - the 2D transformation to be used
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ProportionalQuantities
    • clone

      public Object clone()
      Description copied from class: Thematic
      Constructs a clone of this theme.
      Specified by:
      clone in class Thematic
      Returns:
      a new KTheme object cloned on this theme.
    • clone

      protected void clone(Thematic thematic)
      Overrides:
      clone in class ProportionalQuantities