public abstract class AbstractProjection extends AbstractHierarchicalResult implements Projection
Modifier and Type | Field and Description |
---|---|
protected LinearScale[] |
scales
Scales in data set
|
SCALE
Constructor and Description |
---|
AbstractProjection(LinearScale[] scales)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getInputDimensionality()
Get the input dimensionality of the projection.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
LinearScale |
getScale(int d)
Get the scales used, for rendering scales mostly.
|
String |
getShortName()
A short name for the result, useful for file names.
|
Vector |
projectDataToRenderSpace(NumberVector<?,?> data)
Project a data vector from data space to rendering space.
|
Vector |
projectDataToRenderSpace(Vector data)
Project a data vector from data space to rendering space.
|
Vector |
projectDataToScaledSpace(NumberVector<?,?> data)
Project a data vector from data space to scaled space.
|
Vector |
projectDataToScaledSpace(Vector data)
Project a data vector from data space to scaled space.
|
Vector |
projectRelativeDataToRenderSpace(NumberVector<?,?> data)
Project a relative data vector from data space to rendering space.
|
Vector |
projectRelativeDataToRenderSpace(Vector data)
Project a relative data vector from data space to rendering space.
|
Vector |
projectRelativeDataToScaledSpace(NumberVector<?,?> data)
Project a relative data vector from data space to scaled space.
|
Vector |
projectRelativeDataToScaledSpace(Vector data)
Project a relative data vector from data space to scaled space.
|
<NV extends NumberVector<NV,?>> |
projectRelativeRenderToDataSpace(Vector v,
NV prototype)
Project a relative vector from rendering space to data space.
|
<NV extends NumberVector<NV,?>> |
projectRelativeScaledToDataSpace(Vector v,
NV prototype)
Project a relative vector from scaled space to data space.
|
<NV extends NumberVector<NV,?>> |
projectRenderToDataSpace(Vector v,
NV prototype)
Project a vector from rendering space to data space.
|
<NV extends NumberVector<NV,?>> |
projectScaledToDataSpace(Vector v,
NV factory)
Project a vector from scaled space to data space.
|
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender
getHierarchy, setHierarchy
protected final LinearScale[] scales
public AbstractProjection(LinearScale[] scales)
scales
- Scales to usepublic int getInputDimensionality()
Projection
getInputDimensionality
in interface Projection
public LinearScale getScale(int d)
getScale
in interface Projection
d
- Dimensionpublic Vector projectDataToScaledSpace(NumberVector<?,?> data)
projectDataToScaledSpace
in interface Projection
data
- vector in data spacepublic Vector projectDataToScaledSpace(Vector data)
projectDataToScaledSpace
in interface Projection
data
- vector in data spacepublic Vector projectRelativeDataToScaledSpace(NumberVector<?,?> data)
projectRelativeDataToScaledSpace
in interface Projection
data
- relative vector in data spacepublic Vector projectRelativeDataToScaledSpace(Vector data)
projectRelativeDataToScaledSpace
in interface Projection
data
- relative vector in data spacepublic Vector projectDataToRenderSpace(NumberVector<?,?> data)
projectDataToRenderSpace
in interface Projection
data
- vector in data spacepublic Vector projectDataToRenderSpace(Vector data)
projectDataToRenderSpace
in interface Projection
data
- vector in data spacepublic Vector projectRelativeDataToRenderSpace(NumberVector<?,?> data)
projectRelativeDataToRenderSpace
in interface Projection
data
- relative vector in data spacepublic Vector projectRelativeDataToRenderSpace(Vector data)
projectRelativeDataToRenderSpace
in interface Projection
data
- relative vector in data spacepublic <NV extends NumberVector<NV,?>> NV projectScaledToDataSpace(Vector v, NV factory)
projectScaledToDataSpace
in interface Projection
NV
- Vector typev
- vector in scaled spacefactory
- Object factorypublic <NV extends NumberVector<NV,?>> NV projectRenderToDataSpace(Vector v, NV prototype)
projectRenderToDataSpace
in interface Projection
NV
- Vector typev
- vector in rendering spaceprototype
- Object factorypublic <NV extends NumberVector<NV,?>> NV projectRelativeScaledToDataSpace(Vector v, NV prototype)
projectRelativeScaledToDataSpace
in interface Projection
NV
- Vector typev
- relative vector in scaled spaceprototype
- Object factorypublic <NV extends NumberVector<NV,?>> NV projectRelativeRenderToDataSpace(Vector v, NV prototype)
projectRelativeRenderToDataSpace
in interface Projection
NV
- Vector typev
- relative vector in rendering spaceprototype
- Object factorypublic String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result