Class BasicDrawing.BasicOverlay
- java.lang.Object
-
- org.insa.graphs.gui.drawing.components.BasicDrawing.BasicOverlay
-
- All Implemented Interfaces:
Overlay
- Direct Known Subclasses:
BasicDrawing.BasicMarkerOverlay
,BasicDrawing.BasicPathOverlay
,BasicDrawing.BasicPointSetOverlay
- Enclosing class:
- BasicDrawing
private abstract class BasicDrawing.BasicOverlay extends java.lang.Object implements Overlay
-
-
Constructor Summary
Constructors Constructor Description BasicOverlay(java.awt.Color color)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
delete()
Delete this marker.void
draw(java.awt.Graphics2D g)
Draw the given overlay.abstract void
drawImpl(java.awt.Graphics2D g)
java.awt.Color
getColor()
abstract int
getZLevel()
boolean
isVisible()
void
redraw()
Request a redraw of this overlay - This can start a full redraw of the inner drawing.void
setColor(java.awt.Color color)
Set the color of this overlay.void
setVisible(boolean visible)
Show or hide this marker - A marker should be visible when created.
-
-
-
Method Detail
-
getZLevel
public abstract int getZLevel()
- Returns:
- The Z level of this overlay (>= 1).
-
setColor
public void setColor(java.awt.Color color)
Description copied from interface:Overlay
Set the color of this overlay.
-
getColor
public java.awt.Color getColor()
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:Overlay
Show or hide this marker - A marker should be visible when created.- Specified by:
setVisible
in interfaceOverlay
- Parameters:
visible
- true to show the marker, false to hide.
-
isVisible
public boolean isVisible()
-
delete
public void delete()
Description copied from interface:Overlay
Delete this marker.
-
draw
public void draw(java.awt.Graphics2D g)
Draw the given overlay.
-
drawImpl
public abstract void drawImpl(java.awt.Graphics2D g)
-
-