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 byte
CHECKED
static byte
DEFAULT_CHECKED
static byte
DEFAULT_UNCHECKED
static byte
UNCHECKED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
drawCross(Graphics2D g2, Color color, float xCentre, float yCentre, int width)
protected void
drawTick(Graphics2D g2, Color color, float xCentre, float yCentre, int width)
byte
getSelected()
boolean
isSelected()
void
paintComponent(Graphics g)
Draw a coloured square at the end of the display.void
setDefault(byte state)
void
setSelected(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)
-
-