public class AstFigureProps extends FigureProps
FigureProps that can convert a Figure between
coordinates systems using a Mapping when restoring from
an XML serialization.
This class is intended to be used as a replacement for FigureProps
is intended for use when restoring figures that are stored in some
coordinate system that needs modifying to align with the system now in
use.
interpolatorFactory| Constructor and Description |
|---|
AstFigureProps()
Create an instance ready to be configured using the decode method.
|
AstFigureProps(FigureProps props)
Create an instance which is a copy of an existing FigureProps.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(Element rootElement,
Mapping oldMapping,
Mapping newMapping)
Decode using the given mappings to transforming stored
coordinates to world coordinates, and world coordinates to
current graphics coordinates.
|
void |
transform(double[] x,
double[] y,
Mapping mapping)
Transform arrays of coordinates using a mapping.
|
void |
transform(Rectangle2D.Double r,
Mapping mapping)
Transform a Rectangle using a given mapping.
|
copy, decode, decodeBase64DoubleArray, encode, encodeBase64DoubleArray, getComposite, getFill, getFont, getHeight, getInterpolator, getOutline, getTagName, getText, getThickness, getType, getWidth, getX1, getX2, getXArray, getY1, getY2, getYArray, readInterpolator, reset, setComposite, setFill, setFont, setFromString, setHeight, setInterpolator, setOutline, setText, setThickness, setType, setType, setWidth, setX1, setX2, setXArray, setY1, setY2, setYArray, toString, writeInterpolatorpublic AstFigureProps()
public AstFigureProps(FigureProps props)
public void transform(Rectangle2D.Double r, Mapping mapping)
public void transform(double[] x,
double[] y,
Mapping mapping)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.