jview
Class TransferX
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractTransferProxy
jview.TransferX
- All Implemented Interfaces:
- Cloneable, ViewportTransferring, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class TransferX
- extends AbstractTransferProxy
A transfer function that converts the normalized selected rectangle on
the source graph into a normalized rectangle on the slave graph by
keeping the x-selection, but widing the y-selection to the entire display
space. Inparticular this means that the incoming view is transferred to
user space with the source's UserCoordinates transform. We then
keep the x-bounds and query the slave for its y-span. This y-span together
with the x-bounds is now normalized using the slave's coordinate transform.
|
Field Summary |
private static int |
DEFXINDEX
If the source canvas uses not the first index as x-coordinate. |
static String |
KEY_XINDEX
The index of the x-component. |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_XINDEX
public static final String KEY_XINDEX
- The index of the x-component.
- See Also:
- Constant Field Values
DEFXINDEX
private static final int DEFXINDEX
- If the source canvas uses not the first index as x-coordinate.
- See Also:
- Constant Field Values
TransferX
public TransferX(JViewportCanvas slave)
- Chains.
getAttachedView
protected Rectangle2D getAttachedView(Object src,
Rectangle2D view,
JViewportCanvas on)
- Converts to a zommable rectangle if the source is a
UserCoordinates instance and if the attached slave is a data
canvas. If so, we keep the x-bounds from the selection's upper-left and
lower-right corner and add the y-span from the slave.
We re-transfer to normalized using the slave. If any
process fails, we return null.
- Specified by:
getAttachedView in class AbstractTransferProxy