Documentation of 'sgtplot.PointAttribute' Java class
PointAttribute
sgtplot

Class PointAttribute

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int CENTERED
      Position label over the point
      static int E
      Position label east of the point
      static int N
      Position label north of the point
      static int NE
      Position label northeast of the point
      static int NW
      Position label northwest of the point
      static int S
      Position label south of the point
      static int SE
      Position label southeast of the point
      static int SW
      Position label southwest of the point
      static int W
      Position label west of the point
    • Constructor Summary

      Constructors 
      Constructor and Description
      PointAttribute()
      Default constructor.
      PointAttribute(int mark, java.awt.Color color)
      Constructor for plot marks.
    • Constructor Detail

      • PointAttribute

        public PointAttribute()
        Default constructor. Default mark is 2 and default color is red.
      • PointAttribute

        public PointAttribute(int mark,
                              java.awt.Color color)
        Constructor for plot marks.
        Parameters:
        mark - plot mark
        color - Point color
        See Also:
        PlotMark
    • Method Detail

      • copy

        public PointAttribute copy()
        Copy the PointAttribute.
        Returns:
        new PointAttribute
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        Since:
        3.0
      • setMarkHeightP

        public void setMarkHeightP(double markh)
        Set mark height.
        Property Change: markHeightP.
        Parameters:
        markh - mark height
      • getMarkHeightP

        public double getMarkHeightP()
        Get mark height
        Returns:
        mark height
      • setColor

        public void setColor(java.awt.Color c)
        Set the point Color.
        Property Change: color.
        Parameters:
        c - point Color
      • setWidthP

        public void setWidthP(double t)
        Set the Point width in physical units.
        Property Change: widthP.
        Parameters:
        t - Point width
      • getColor

        public java.awt.Color getColor()
        Get Point Color.
        Returns:
        Point Color
      • getWidthP

        public double getWidthP()
        Get Point width.
        Returns:
        Point width in physcial coordinates.
      • setMark

        public void setMark(int mark)
        Set plot mark
        Property Change: mark.
        Parameters:
        mark - the plot mark
        See Also:
        PlotMark
      • getMark

        public int getMark()
        Get plot mark
        Returns:
        plot mark
        See Also:
        PlotMark
      • setLabelPosition

        public void setLabelPosition(int pos)
        Set label position.
        Property Change: labelPosition.
      • getLabelPosition

        public int getLabelPosition()
        Get label position.
      • setLabelColor

        public void setLabelColor(java.awt.Color col)
        Set label Color.
        Property Change: labelColor.
      • getLabelColor

        public java.awt.Color getLabelColor()
        Get label Color.
      • setLabelFont

        public void setLabelFont(java.awt.Font font)
        Set label Font.
        Property Change: labelFont.
      • getLabelFont

        public java.awt.Font getLabelFont()
        Get label Font.
      • setLabelHeightP

        public void setLabelHeightP(double h)
        Set label height.
        Property Change: labelHeightP.
      • getLabelHeightP

        public double getLabelHeightP()
        Get label height.
      • setDrawLabel

        public void setDrawLabel(boolean dl)
        Set label drawing.
        Property Change: drawLabel.
      • isDrawLabel

        public boolean isDrawLabel()
        Is label drawing on?
      • toString

        public java.lang.String toString()
        Get a String representation of the PointAttribute.
        Specified by:
        toString in interface Attribute
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation
      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
        Add listener to changes in PointAttribute properties.
        Specified by:
        addPropertyChangeListener in interface Attribute
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
        Description copied from interface: Attribute
        Remove change listener.
        Specified by:
        removePropertyChangeListener in interface Attribute
      • setId

        public void setId(java.lang.String id)
        Description copied from interface: Attribute
        Set attribute id.
        Specified by:
        setId in interface Attribute
        Since:
        3.0
      • getId

        public java.lang.String getId()
        Description copied from interface: Attribute
        Get attribute id.
        Specified by:
        getId in interface Attribute
        Since:
        3.0
      • setBatch

        public void setBatch(boolean batch)
        Description copied from interface: Attribute
        Batch the changes to the attribute.
        Specified by:
        setBatch in interface Attribute
        Since:
        3.0
      • setBatch

        public void setBatch(boolean batch,
                             boolean local)
        Description copied from interface: Attribute
        Batch the changes to the attribute and set local flag. Determines whether AttributeChangeEvent will be set local.
        Specified by:
        setBatch in interface Attribute
        Since:
        3.0
      • isBatch

        public boolean isBatch()
        Description copied from interface: Attribute
        Is the attribute in batch mode?
        Specified by:
        isBatch in interface Attribute
        Since:
        3.0

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.