public class GraphicsLayer extends java.util.ArrayList<java.awt.Shape> implements VirtualBookComponentLayer, VirtualBookComponentLayerName
Constructor and Description |
---|
GraphicsLayer(java.lang.String displayname) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
JVirtualBookComponent jbookcomponentreference)
ask for a draw in the component
|
java.awt.Color |
getColor()
get the paint color
|
java.lang.String |
getDisplayName() |
java.awt.Paint |
getPaint()
get the paint for the display
|
java.awt.Stroke |
getStroke()
get the stroke for the paint
|
boolean |
isVisible()
ask if the layer is visible
|
void |
setColor(java.awt.Color color)
set the paint color
|
void |
setPaint(java.awt.Paint paint)
Set paint for the display
|
void |
setStroke(java.awt.Stroke stroke)
define the stroke for painting
|
void |
setVisible(boolean visible)
define if the layer is visible or not
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public GraphicsLayer(java.lang.String displayname) throws java.lang.Exception
java.lang.Exception
public void setPaint(java.awt.Paint paint)
paint
- public java.awt.Paint getPaint()
public void setStroke(java.awt.Stroke stroke)
stroke
- public java.awt.Stroke getStroke()
public void setColor(java.awt.Color color)
color
- public java.awt.Color getColor()
public java.lang.String getDisplayName()
getDisplayName
in interface VirtualBookComponentLayerName
public void draw(java.awt.Graphics g, JVirtualBookComponent jbookcomponentreference)
VirtualBookComponentLayer
draw
in interface VirtualBookComponentLayer
g
- the graphic reference for drawing with Java2Djbookcomponentreference
- the VirtualBookComponent referencepublic void setVisible(boolean visible)
VirtualBookComponentLayer
setVisible
in interface VirtualBookComponentLayer
public boolean isVisible()
VirtualBookComponentLayer
isVisible
in interface VirtualBookComponentLayer