sgtplot.swing
Class PlotMarkIcon
- java.lang.Object
-
- sgtplot.PlotMark
-
- sgtplot.swing.PlotMarkIcon
-
- All Implemented Interfaces:
- javax.swing.Icon
public class PlotMarkIcon extends PlotMark implements javax.swing.Icon
PlotMarkIconextendsPlotMarkto create a icon than displays thesgtplotplot marks. ThePlotMarkIconcan be used with buttons, e.g. selecting a plot mark for a line, or labels.- Since:
- 2.0
- See Also:
PlotMark,Icon
-
-
Constructor Summary
Constructors Constructor and Description PlotMarkIcon(int mark)Construct aPlotMarkIcon.PlotMarkIcon(int mark, int size)Construct aPlotMarkIcon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetIconHeight()Set the icon heightintgetIconWidth()Get the icon withintgetSize()Get the size of the plot markvoidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)Paint the icon at the specified locationvoidsetSize(int size)Set the size of the plot mark in device units.java.lang.StringtoString()-
Methods inherited from class sgtplot.PlotMark
getMark, getMarkHeightP, main, paintMark, setLineAttribute, setMark, setMarkHeightP, setPointAttribute
-
-
-
-
Constructor Detail
-
PlotMarkIcon
public PlotMarkIcon(int mark, int size)Construct aPlotMarkIcon.- Parameters:
mark- the plot mark codesize- plot mark size in device units
-
PlotMarkIcon
public PlotMarkIcon(int mark)
Construct aPlotMarkIcon.- 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:
paintIconin interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
Get the icon with- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
Set the icon height- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
-
DMelt 3.0 © DataMelt by jWork.ORG