public class P2D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUSNAME
Component infobus name.
|
static double |
CENTER
The constant for CENTER.
|
static java.awt.Color[] |
colors
predefined color array.
|
static java.util.BitSet |
flags
The component flags.
|
static float |
FONT_FACTOR
Font scaling factor.
|
static java.lang.String |
INFOBUSDEFAULTNAME
Component bus default name.
|
static java.lang.String |
INFOBUSNAMEKEY
Component bus property key.
|
static double |
LEFT
The contant for LEFT.
|
static float |
LINEDIST_FACTOR
Text line distance factor.
|
static double |
log10
The logarithmn of 10;
|
static java.lang.String |
MARKERBUSNAME
Component infobus name.
|
static java.lang.String |
MARKERINFOBUSDEFAULTNAME
Component bus default name.
|
static java.lang.String |
MARKERINFOBUSNAMEKEY
Marker bus property key.
|
static double |
MAX_FSCALE
The maximum for floating format.
|
static double |
MIN_FSCALE
The minimum for floating format.
|
static int |
P2DAXIS |
static int |
P2DCHANNEL |
static int |
P2DCOMPONENT |
static int |
P2DLINE |
static java.lang.String[] |
P2DObjectName
Currently defined P2D objects.
|
static int |
P2DPLOT |
static int |
P2DTEXT |
static double |
pt
The standard pt size in meter.
|
static double |
RIGHT
The contant for RIGHT.
|
static float |
xOffset
The offset parameters in x.
|
static float |
xScale
The scaling parameters in x.
|
static float |
yOffset
The offset parameters in y.
|
static float |
yScale
The scaling parameters in y.
|
static float |
zThreshold
Boundingbox threshhold in Z.
|
Constructor and Description |
---|
P2D() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
black()
Get predefined color.
|
static java.awt.Color |
blue()
Get predefined color.
|
static java.awt.Color |
cyan()
Get predefined color.
|
static java.awt.Color |
darkblue()
Get predefined color.
|
static java.awt.Color |
darkcyan()
Get predefined color.
|
static java.awt.Color |
darkgray()
Get predefined color.
|
static java.awt.Color |
darkgreen()
Get predefined color.
|
static java.awt.Color |
darkmagenta()
Get predefined color.
|
static java.awt.Color |
darkorange()
Get predefined color.
|
static java.awt.Color |
darkred()
Get predefined color.
|
static java.awt.Color |
darkyellow()
Get predefined color.
|
static P2DBoundingBoxInterface |
getAxisBoundingBox(P2DAxisInterface xAxis,
P2DAxisInterface yAxis)
Get the bounding box that is biuld by the axis.
|
static java.awt.geom.AffineTransform |
getAxisTransformation(P2DAxisInterface xAxis,
P2DAxisInterface yAxis,
P2DBoundingBoxInterface bb)
Get the affinetransform that is build by the axes.
|
static java.awt.Cursor |
getCursor(int handle)
Get the cursor for the specified handle.
|
static java.awt.Color |
getInverseColor(java.awt.Color color)
Calculate the inverse color.
|
static boolean |
getPrinting()
Returns a boolean whether the components current printing.
|
static java.awt.Color |
gray()
Get predefined color.
|
static java.awt.Color |
green()
Get predefined color.
|
static java.awt.Color |
magenta()
Get predefined color.
|
static void |
main(java.lang.String[] args)
The main test program.
|
static java.awt.Color |
maroon()
Get predefined color.
|
static java.awt.Color |
orange()
Get predefined color.
|
static java.awt.Color |
pink()
Get predefined color.
|
static java.awt.Color |
red()
Get predefined color.
|
static void |
setPrinting(boolean flag)
Set the printing flag.
|
static java.awt.Color |
white()
Get predefined color.
|
static java.awt.Color |
yellow()
Get predefined color.
|
public static java.lang.String[] P2DObjectName
public static final double log10
public static final double MAX_FSCALE
public static final double MIN_FSCALE
public static final float xScale
public static final float yScale
public static final float xOffset
public static final float yOffset
public static final double pt
public static final float FONT_FACTOR
public static final float LINEDIST_FACTOR
public static final float zThreshold
public static final java.lang.String INFOBUSNAMEKEY
public static final java.lang.String INFOBUSDEFAULTNAME
public static final java.lang.String MARKERINFOBUSNAMEKEY
public static final java.lang.String MARKERINFOBUSDEFAULTNAME
public static final double CENTER
public static final double LEFT
public static final double RIGHT
public static final java.awt.Color[] colors
public static java.lang.String BUSNAME
public static java.lang.String MARKERBUSNAME
public static java.util.BitSet flags
public static final int P2DCOMPONENT
public static final int P2DAXIS
public static final int P2DCHANNEL
public static final int P2DTEXT
public static final int P2DLINE
public static final int P2DPLOT
public static boolean getPrinting()
public static void setPrinting(boolean flag)
public static java.awt.Color black()
public static java.awt.Color white()
public static java.awt.Color red()
public static java.awt.Color green()
public static java.awt.Color blue()
public static java.awt.Color yellow()
public static java.awt.Color magenta()
public static java.awt.Color cyan()
public static java.awt.Color gray()
public static java.awt.Color darkred()
public static java.awt.Color darkgreen()
public static java.awt.Color darkblue()
public static java.awt.Color darkyellow()
public static java.awt.Color darkmagenta()
public static java.awt.Color darkcyan()
public static java.awt.Color darkgray()
public static java.awt.Color orange()
public static java.awt.Color pink()
public static java.awt.Color darkorange()
public static java.awt.Color maroon()
public static java.awt.Cursor getCursor(int handle)
handle
- The number of the handle.public static java.awt.Color getInverseColor(java.awt.Color color)
color
- The color.public static java.awt.geom.AffineTransform getAxisTransformation(P2DAxisInterface xAxis, P2DAxisInterface yAxis, P2DBoundingBoxInterface bb)
xAxis
- the x axis.yAxis
- the y axis.bb
- The boundingBox that should be scaled.public static P2DBoundingBoxInterface getAxisBoundingBox(P2DAxisInterface xAxis, P2DAxisInterface yAxis)
xAxis
- the x axis.yAxis
- the y axis.bb
- The boundingBox that should be scaled.public static void main(java.lang.String[] args)