|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gov.noaa.pmel.sgt.PlotMark
|
+--gov.noaa.pmel.sgt.swing.PlotMarkIcon
PlotMarkIcon extends PlotMark to create a
icon than displays the sgt plot marks. The
PlotMarkIcon can be used with buttons, e.g. selecting
a plot mark for a line, or labels.
PlotMark,
Icon| Constructor Summary | |
PlotMarkIcon(int mark)
Construct a PlotMarkIcon. |
|
PlotMarkIcon(int mark,
int size)
Construct a PlotMarkIcon. |
|
| Method Summary | |
int |
getIconHeight()
Set the icon height |
int |
getIconWidth()
Get the icon with |
int |
getSize()
Get the size of the plot mark |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paint the icon at the specified location |
void |
setSize(int size)
Set the size of the plot mark in device units. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class gov.noaa.pmel.sgt.PlotMark |
getMark, getMarkHeightP, paintMark, setLineAttribute, setMark, setMarkHeightP, setPointAttribute |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PlotMarkIcon(int mark,
int size)
PlotMarkIcon.mark - the plot mark codesize - plot mark size in device unitspublic PlotMarkIcon(int mark)
PlotMarkIcon.mark - the plot mark code| Method Detail |
public void setSize(int size)
public int getSize()
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconjavax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Iconjavax.swing.Iconpublic java.lang.String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class PlotMarkjava.lang.Object
|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||