sgtplot
Class PlotMark
- java.lang.Object
-
- sgtplot.PlotMark
-
- Direct Known Subclasses:
- PlotMarkIcon
public class PlotMark extends java.lang.ObjectSupport class used to draw a PlotMark. Plot mark codes are defined in the following table.

- Since:
- 2.0
- See Also:
PointCartesianRenderer,PlotMarkIcon
-
-
Constructor Summary
Constructors Constructor and Description PlotMark(int mark)Construct aPlotMarkusing the code from the mark code.PlotMark(LineAttribute attr)Construct aPlotMarkusing the code and height from theLineAttribute.PlotMark(PointAttribute attr)Construct aPlotMarkusing the code and height from thePointAttribute.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetMark()Get the mark code.doublegetMarkHeightP()Get the mark heightstatic voidmain(java.lang.String[] args)voidpaintMark(org.freehep.graphics2d.VectorGraphics g, Layer ly, int xp, int yp)Used internally by sgtplot.voidsetLineAttribute(LineAttribute attr)Set the mark and height from theLineAttribute.voidsetMark(int mark)Set the mark.voidsetMarkHeightP(double mHeight)Set the mark height.voidsetPointAttribute(PointAttribute attr)Set the mark and height from thePointAttribute.java.lang.StringtoString()
-
-
-
Constructor Detail
-
PlotMark
public PlotMark(LineAttribute attr)
Construct aPlotMarkusing the code and height from theLineAttribute.
-
PlotMark
public PlotMark(PointAttribute attr)
Construct aPlotMarkusing the code and height from thePointAttribute.
-
PlotMark
public PlotMark(int mark)
Construct aPlotMarkusing the code from the mark code. Default height = 0.08.
-
-
Method Detail
-
setPointAttribute
public void setPointAttribute(PointAttribute attr)
Set the mark and height from thePointAttribute.
-
setLineAttribute
public void setLineAttribute(LineAttribute attr)
Set the mark and height from theLineAttribute.
-
setMark
public void setMark(int mark)
Set the mark.
-
getMark
public int getMark()
Get the mark code.
-
setMarkHeightP
public void setMarkHeightP(double mHeight)
Set the mark height.
-
getMarkHeightP
public double getMarkHeightP()
Get the mark height
-
paintMark
public void paintMark(org.freehep.graphics2d.VectorGraphics g, Layer ly, int xp, int yp)Used internally by sgtplot.
-
main
public static void main(java.lang.String[] args)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG