Documentation of 'sgtplot.swing.PlotMarkIcon' Java class
PlotMarkIcon
sgtplot.swing

Class PlotMarkIcon

  • All Implemented Interfaces:
    javax.swing.Icon


    public class PlotMarkIcon
    extends PlotMark
    implements javax.swing.Icon
    PlotMarkIcon extends PlotMark to create a icon than displays the sgtplot plot marks. The PlotMarkIcon can be used with buttons, e.g. selecting a plot mark for a line, or labels.
    Since:
    2.0
    See Also:
    PlotMark, Icon
    • Constructor Detail

      • PlotMarkIcon

        public PlotMarkIcon(int mark,
                            int size)
        Construct a PlotMarkIcon.
        Parameters:
        mark - the plot mark code
        size - plot mark size in device units
      • PlotMarkIcon

        public PlotMarkIcon(int mark)
        Construct a PlotMarkIcon.
        Parameters:
        mark - the plot mark code
    • Method Detail

      • setSize

        public void setSize(int size)
        Set the size of the plot mark in device units.
      • getSize

        public int getSize()
        Get the size of the plot mark
      • paintIcon

        public void paintIcon(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Paint the icon at the specified location
        Specified by:
        paintIcon in interface javax.swing.Icon
      • getIconWidth

        public int getIconWidth()
        Get the icon with
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Set the icon height
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class PlotMark

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.