public class P2DMarkerView extends P2DComponentView implements P2DMarkerViewInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
Constructor and Description |
---|
P2DMarkerView() |
Modifier and Type | Method and Description |
---|---|
void |
draw(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g2,
P2DBoundingBoxInterface displayBox)
Draw the text.
|
protected void |
drawCenterHandleImage(java.awt.Graphics2D g,
java.awt.geom.Point2D l,
java.awt.geom.Point2D u) |
protected void |
drawGroupArea(java.awt.Graphics2D g,
P2DMarkerGroupInterface group,
P2DRange1DInterface xRange,
P2DRange1DInterface yRange,
boolean xType,
P2DAxisInterface xAxis,
P2DAxisInterface yAxis)
Draw the group markers area.
|
protected void |
drawGroupHandles(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
P2DMarkerGroupInterface group,
P2DRange1DInterface xRange,
P2DRange1DInterface yRange,
boolean xType,
P2DAxisInterface xAxis,
P2DAxisInterface yAxis)
Draw the group markers area.
|
void |
drawHandles(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g,
P2DBoundingBoxInterface bb,
P2DAxisInterface xAxis,
P2DAxisInterface yAxis)
Draw the text.
|
protected void |
drawLeftHandleImage(java.awt.Graphics2D g,
java.awt.geom.Point2D l,
java.awt.geom.Point2D u) |
protected void |
drawRightHandleImage(java.awt.Graphics2D g,
java.awt.geom.Point2D l,
java.awt.geom.Point2D u) |
protected java.awt.geom.AffineTransform |
getAxisTransformation(P2DAxisTypeInterface type,
P2DAxisInterface xAxis,
P2DAxisInterface yAxis,
P2DBoundingBoxInterface displayBox)
Determine the transformation needs for drawing.
|
void |
paint(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g2)
Paint the component.
|
draw, drawBackground, drawChildren, drawFrame, getVersion, initialize, install, paint, release, release, revalidate, uninstall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, drawBackground, drawChildren, drawFrame, initialize, install, revalidate, uninstall
public static final java.lang.String version
public void paint(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g2)
This method saves the transformation of the context. This information will be stored in a hashtable where the key is the toplevel container.
The method will configure the graphical context, and will call the methods drawBackground, draw, drawChildren, drawFrame in a save graphical environment.
paint
in interface P2DViewInterface
paint
in class P2DComponentView
container
- The toplevel container.component
- the component to be paint.g2
- The graphics context.protected java.awt.geom.AffineTransform getAxisTransformation(P2DAxisTypeInterface type, P2DAxisInterface xAxis, P2DAxisInterface yAxis, P2DBoundingBoxInterface displayBox)
public void draw(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g2, P2DBoundingBoxInterface displayBox)
container
- The toplevel container.g2
- The graphical context.public void drawHandles(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g, P2DBoundingBoxInterface bb, P2DAxisInterface xAxis, P2DAxisInterface yAxis)
container
- The toplevel container.g2
- The graphical context.protected void drawGroupArea(java.awt.Graphics2D g, P2DMarkerGroupInterface group, P2DRange1DInterface xRange, P2DRange1DInterface yRange, boolean xType, P2DAxisInterface xAxis, P2DAxisInterface yAxis)
protected void drawGroupHandles(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, P2DMarkerGroupInterface group, P2DRange1DInterface xRange, P2DRange1DInterface yRange, boolean xType, P2DAxisInterface xAxis, P2DAxisInterface yAxis)
protected void drawLeftHandleImage(java.awt.Graphics2D g, java.awt.geom.Point2D l, java.awt.geom.Point2D u)
protected void drawRightHandleImage(java.awt.Graphics2D g, java.awt.geom.Point2D l, java.awt.geom.Point2D u)
protected void drawCenterHandleImage(java.awt.Graphics2D g, java.awt.geom.Point2D l, java.awt.geom.Point2D u)