public class P2DChannelStairsView extends P2DChannelView
P2DChannelView.Dot, P2DChannelView.RegisterCard
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
fillColor |
protected java.lang.Double |
stairWidth |
protected int |
type |
static int |
TYPE_BRICKS
This type drawn bricks.
|
static int |
TYPE_MAX |
static int |
TYPE_STAIRS
This is the default type.
|
static java.lang.String |
version |
containerMap, destPoint, log10, meanFilterFactor, sourcePoint
Constructor and Description |
---|
P2DChannelStairsView()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
backgroundHook(java.awt.Graphics2D graphics,
java.awt.geom.AffineTransform at)
The background hook.
|
void |
backgroundHookAtTick(java.awt.Graphics2D graphics,
java.awt.geom.AffineTransform at)
The background hook.
|
java.awt.Color |
getFillColor()
Get the fill color.
|
double |
getStairWidth()
Retrieve the width of stairs.
|
int |
getType()
Get the type of the view.
|
protected boolean |
setBricksShapePoint(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.
|
void |
setFillColor(java.awt.Color fillColor)
Set the fill color.
|
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.
|
protected boolean |
setStairsShapePoint(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.
|
void |
setStairWidth(double width)
Set the width of the stairs.
|
void |
setType(int type)
Set the type of view.
|
closePath, draw, foregroundHook, getCard, isValid, isValidCard, paint, release, revalidate, setPoint
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 int TYPE_STAIRS
public static final int TYPE_BRICKS
public static final int TYPE_MAX
protected int type
protected java.awt.Color fillColor
protected java.lang.Double stairWidth
public void setFillColor(java.awt.Color fillColor)
color
- the fill color.public java.awt.Color getFillColor()
public void setType(int type)
type
- public int getType()
public void setStairWidth(double width)
width
- the width.public double getStairWidth()
protected boolean setShapePoint(double x, P2DRange1DInterface xRange, boolean xLog, double y, P2DRange1DInterface yRange, boolean yLog, java.awt.geom.GeneralPath shape, boolean penUp)
setShapePoint
in class P2DChannelView
protected boolean setStairsShapePoint(double x, P2DRange1DInterface xRange, boolean xLog, double y, P2DRange1DInterface yRange, boolean yLog, java.awt.geom.GeneralPath shape, boolean penUp)
protected boolean setBricksShapePoint(double x, P2DRange1DInterface xRange, boolean xLog, double y, P2DRange1DInterface yRange, boolean yLog, java.awt.geom.GeneralPath shape, boolean penUp)
public void backgroundHook(java.awt.Graphics2D graphics, java.awt.geom.AffineTransform at)
backgroundHook
in class P2DChannelView
g
- the graphical context.public void backgroundHookAtTick(java.awt.Graphics2D graphics, java.awt.geom.AffineTransform at)
g
- the graphical context.