public class P2DChannelView extends P2DComponentView implements P2DChannelViewInterface
Modifier and Type | Class and Description |
---|---|
class |
P2DChannelView.Dot
The DOT class.
|
protected class |
P2DChannelView.RegisterCard
The container register card.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
containerMap |
protected java.awt.geom.Point2D.Double |
destPoint |
static double |
log10 |
protected float |
meanFilterFactor |
protected java.awt.geom.Point2D.Double |
sourcePoint |
static java.lang.String |
version |
Constructor and Description |
---|
P2DChannelView()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
backgroundHook(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at)
The background hook.
|
protected void |
closePath(P2DChannelView.RegisterCard card,
java.awt.geom.AffineTransform at,
java.util.Vector minVector,
java.util.Vector maxVector)
Close an envelope path.
|
void |
draw(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g2)
Draw the text.
|
void |
foregroundHook(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at)
The foreground hook.
|
protected P2DChannelView.RegisterCard |
getCard(P2DComponentInterface component,
P2DContainerInterface container)
Get the register card belong to the given container.
|
protected boolean |
isValid(P2DComponentInterface component,
P2DContainerInterface container)
Returns a boolean whether the view is already valid.
|
protected boolean |
isValidCard(P2DComponentInterface component,
P2DChannelView.RegisterCard card)
Returns a boolean whether the card is valid.
|
void |
paint(P2DComponentInterface component,
P2DContainerInterface container,
java.awt.Graphics2D g2)
Paint the component.
|
void |
release()
release object.
|
void |
revalidate(P2DComponentInterface component,
boolean recursive)
Request a newly calculation of the component.
|
protected boolean |
setPoint(double x,
P2DRange1DInterface xRange,
boolean xLog,
double y,
P2DRange1DInterface yRange,
boolean yLog,
java.util.Vector vector,
boolean penUp)
Set a new point at the given shape.
|
protected boolean |
setShapePoint(double x,
P2DRange1DInterface xRange,
boolean xLog,
double y,
P2DRange1DInterface yRange,
boolean yLog,
java.awt.geom.GeneralPath shape,
boolean penUp)
Set a new shape point at the given shape.
|
drawBackground, drawChildren, drawFrame, getVersion, initialize, install, paint, release, uninstall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawBackground, drawChildren, drawFrame, initialize, install, uninstall
public static final java.lang.String version
public static final double log10
protected float meanFilterFactor
protected java.util.HashMap containerMap
protected java.awt.geom.Point2D.Double sourcePoint
protected java.awt.geom.Point2D.Double destPoint
public void release()
release
in class P2DComponentView
public void paint(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g2)
paint
in interface P2DViewInterface
paint
in class P2DComponentView
container
- the toplevel container.g
- The graphics context.public void draw(P2DComponentInterface component, P2DContainerInterface container, java.awt.Graphics2D g2)
draw
in interface P2DViewInterface
draw
in class P2DComponentView
container
- The toplevel container.g2
- The graphical context.component
- The component to be paint.public void backgroundHook(java.awt.Graphics2D g, java.awt.geom.AffineTransform at)
g
- the graphical context.public void foregroundHook(java.awt.Graphics2D g, java.awt.geom.AffineTransform at)
g
- the graphical context.protected void closePath(P2DChannelView.RegisterCard card, java.awt.geom.AffineTransform at, java.util.Vector minVector, java.util.Vector maxVector)
protected boolean setPoint(double x, P2DRange1DInterface xRange, boolean xLog, double y, P2DRange1DInterface yRange, boolean yLog, java.util.Vector vector, boolean penUp)
protected boolean setShapePoint(double x, P2DRange1DInterface xRange, boolean xLog, double y, P2DRange1DInterface yRange, boolean yLog, java.awt.geom.GeneralPath shape, boolean penUp)
public void revalidate(P2DComponentInterface component, boolean recursive)
revalidate
in interface P2DViewInterface
revalidate
in class P2DComponentView
protected boolean isValid(P2DComponentInterface component, P2DContainerInterface container)
protected boolean isValidCard(P2DComponentInterface component, P2DChannelView.RegisterCard card)
protected P2DChannelView.RegisterCard getCard(P2DComponentInterface component, P2DContainerInterface container)
container
- The toplevel container