Package net.ontopia.topicmaps.viz
Class VisibleIndicator
- java.lang.Object
-
- net.ontopia.topicmaps.viz.VisibleIndicator
-
public class VisibleIndicator extends Object
Indicator of whether a menu item has been checked, unchecked or used default (the default being checked or unchecked).
-
-
Field Summary
Fields Modifier and Type Field Description static byteCHECKEDstatic byteDEFAULT_CHECKEDstatic byteDEFAULT_UNCHECKEDstatic byteUNCHECKED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddrawCross(Graphics2D g2, Color color, float xCentre, float yCentre, int width)protected voiddrawTick(Graphics2D g2, Color color, float xCentre, float yCentre, int width)bytegetSelected()booleanisSelected()voidpaintComponent(Graphics g)Draw a coloured square at the end of the display.voidsetDefault(byte state)voidsetSelected(byte state)
-
-
-
Field Detail
-
CHECKED
public static final byte CHECKED
- See Also:
- Constant Field Values
-
UNCHECKED
public static final byte UNCHECKED
- See Also:
- Constant Field Values
-
DEFAULT_CHECKED
public static final byte DEFAULT_CHECKED
- See Also:
- Constant Field Values
-
DEFAULT_UNCHECKED
public static final byte DEFAULT_UNCHECKED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSelected
public byte getSelected()
-
isSelected
public boolean isSelected()
-
setDefault
public void setDefault(byte state)
-
setSelected
public void setSelected(byte state)
-
paintComponent
public void paintComponent(Graphics g)
Draw a coloured square at the end of the display.
-
drawTick
protected void drawTick(Graphics2D g2, Color color, float xCentre, float yCentre, int width)
-
drawCross
protected void drawCross(Graphics2D g2, Color color, float xCentre, float yCentre, int width)
-
-