Package net.ontopia.topicmaps.viz
Class VisibleIndicator
java.lang.Object
net.ontopia.topicmaps.viz.VisibleIndicator
Indicator of whether a menu item has been checked, unchecked or
used default (the default being checked or unchecked).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final byte -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawCross(Graphics2D g2, Color color, float xCentre, float yCentre, int width) protected voiddrawTick(Graphics2D g2, Color color, float xCentre, float yCentre, int width) bytebooleanvoidDraw a coloured square at the end of the display.voidsetDefault(byte state) voidsetSelected(byte state)
-
Field Details
-
CHECKED
public static final byte CHECKED- See Also:
-
UNCHECKED
public static final byte UNCHECKED- See Also:
-
DEFAULT_CHECKED
public static final byte DEFAULT_CHECKED- See Also:
-
DEFAULT_UNCHECKED
public static final byte DEFAULT_UNCHECKED- See Also:
-
-
Method Details
-
getSelected
public byte getSelected() -
isSelected
public boolean isSelected() -
setDefault
public void setDefault(byte state) -
setSelected
public void setSelected(byte state) -
paintComponent
Draw a coloured square at the end of the display. -
drawTick
-
drawCross
-