E
- The subclass of Area that this layer knows how to draw.public abstract class AreaLayer<E extends Area> extends StandardEntityViewLayer<E>
entities
VISIBILITY_SUFFIX, world
component
Modifier | Constructor and Description |
---|---|
protected |
AreaLayer(java.lang.Class<E> clazz)
Construct an area view layer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
paintEdge(Edge e,
java.awt.Graphics2D g,
ScreenTransform t)
Paint an individual edge.
|
protected void |
paintShape(E area,
java.awt.Polygon p,
java.awt.Graphics2D g)
Paint the overall shape.
|
java.awt.Shape |
render(E area,
java.awt.Graphics2D g,
ScreenTransform t)
Render an entity and return the shape.
|
postView, preView, render, view, viewObject
initialise
getPopupMenuItems, isVisible, processView, setLayerViewComponent, setVisible
protected AreaLayer(java.lang.Class<E> clazz)
clazz
- The subclass of Area this can render.public java.awt.Shape render(E area, java.awt.Graphics2D g, ScreenTransform t)
StandardEntityViewLayer
render
in class StandardEntityViewLayer<E extends Area>
area
- The entity to render.g
- The graphics to render on.t
- A helpful coordinate transformer.protected void paintEdge(Edge e, java.awt.Graphics2D g, ScreenTransform t)
e
- The edge to paint.g
- The graphics to paint on.t
- The screen transform.protected void paintShape(E area, java.awt.Polygon p, java.awt.Graphics2D g)
area
- The area.p
- The overall polygon.g
- The graphics to paint on.