sgtplot.plot
Class PlotLayerHints
- java.lang.Object
-
- sgtplot.plot.PlotLayerHints
-
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map
public class PlotLayerHints extends java.lang.Object implements java.util.Map, java.lang.Cloneable- Since:
- 2.x
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringKEY_ASPECT_RATIOAspectRatio hint keystatic java.lang.StringKEY_LAYER_PLACEMENTLayer Placement hint keystatic java.lang.StringKEY_PLOTKEY_LOCATIONPlotKey location hint keystatic java.lang.StringKEY_PLOTKEY_TYPEPlotKey Type hint keystatic java.lang.StringKEY_X_AXIS_LOCATIONAxis location should actually go through a series of steps X Axis Location 1) bottom of plot region 2) top of plot region 3) below bottom axis (increase border if needed) 4) above top axis (increase border if needed) Y Axis Locations 1) left of plot region 2) right of plot region 3) outside left axis (increase border if needed) 4) outside right axis (increase border if needed) X Axis Location hint keystatic java.lang.StringKEY_X_TRANSFORMDecision to create a new transform or re-use an existing transform should follow the following steps 1) Use transform from same LayerStack 2) Use transform from same JPlotPane 3) Create a new transform to use existing transform 1) both must be space or both time (test cant be defeated) 2) must have units that are convertable to existing transform 3) must have identical units X Transform hint keystatic java.lang.StringKEY_Y_AXIS_LOCATIONY Axis Location hint keystatic java.lang.StringKEY_Y_TRANSFORMY Transform hint keystatic java.lang.StringVALUE_ASPECT_RATIO_LOCKAspecRatio hint values -- lock X and Y scalesstatic java.lang.StringVALUE_ASPECT_RATIO_NO_LOCKAspecRatio hint values -- dont lock X and Y scales (during resize)static java.lang.StringVALUE_LAYER_PLACEMENT_OVERLAYLayer Placement hint values -- overlaystatic java.lang.StringVALUE_PLOTKEY_IN_POPUPPlotKey Type hint values -- in pop-up windowstatic java.lang.StringVALUE_PLOTKEY_IN_TABLEPlotKey Type hint values -- in JTablestatic java.lang.StringVALUE_PLOTKEY_NONEPlotKey Type hint values -- no keystatic java.lang.StringVALUE_PLOTKEY_ON_LAYERPlotKey Type hint values -- on layerstatic java.lang.StringVALUE_PLOTKEY_ON_SEPERATE_LAYERPlotKey Type hint values -- on seperate layerstatic java.lang.StringVALUE_X_AXIS_LOCATION_BOTTOMX Axis Location hint values -- bottomstatic java.lang.StringVALUE_X_AXIS_LOCATION_DEFAULTX Axis Location hint values -- default First try bottom, top, below bottom, then above topstatic java.lang.StringVALUE_X_AXIS_LOCATION_TOPX Axis Location hint values -- topstatic java.lang.StringVALUE_X_TRANSFORM_DEFAULTX Transform hint values -- default First try LayerStack, JPlotPane, then create new transformstatic java.lang.StringVALUE_X_TRANSFORM_NEWX Transform hint values -- newstatic java.lang.StringVALUE_X_TRANSFORM_USEPLOTPANEX Transform hint values -- use JPlotPanestatic java.lang.StringVALUE_Y_AXIS_LOCATION_DEFAULTY Axis Location hint values -- default First try left, right, outside right, then outside leftstatic java.lang.StringVALUE_Y_AXIS_LOCATION_LEFTY Axis Location hint values -- leftstatic java.lang.StringVALUE_Y_AXIS_LOCATION_RIGHTY Axis Location hint values -- rightstatic java.lang.StringVALUE_Y_TRANSFORM_DEFAULTY Transform hint values -- default First try LayerStack, JPlotPane, then create new transformstatic java.lang.StringVALUE_Y_TRANSFORM_NEWY Transform hint values -- newstatic java.lang.StringVALUE_Y_TRANSFORM_USEPLOTPANEY Transform hint values -- use JPlotPane
-
Constructor Summary
Constructors Constructor and Description PlotLayerHints(java.util.Map init)PlotLayerHints(java.lang.String key, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(PlotLayerHints hints)voidclear()java.lang.Objectclone()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.SetentrySet()booleanequals(java.lang.Object o)java.lang.Objectget(java.lang.Object key)inthashCode()booleanisEmpty()java.util.SetkeySet()java.lang.Objectput(java.lang.Object key, java.lang.Object value)voidputAll(java.util.Map m)java.lang.Objectremove(java.lang.Object key)intsize()java.lang.StringtoString()java.util.Collectionvalues()
-
-
-
Field Detail
-
KEY_PLOTKEY_TYPE
public static final java.lang.String KEY_PLOTKEY_TYPE
PlotKey Type hint key- See Also:
- Constant Field Values
-
VALUE_PLOTKEY_ON_LAYER
public static final java.lang.String VALUE_PLOTKEY_ON_LAYER
PlotKey Type hint values -- on layer- See Also:
- Constant Field Values
-
VALUE_PLOTKEY_ON_SEPERATE_LAYER
public static final java.lang.String VALUE_PLOTKEY_ON_SEPERATE_LAYER
PlotKey Type hint values -- on seperate layer- See Also:
- Constant Field Values
-
VALUE_PLOTKEY_IN_POPUP
public static final java.lang.String VALUE_PLOTKEY_IN_POPUP
PlotKey Type hint values -- in pop-up window- See Also:
- Constant Field Values
-
VALUE_PLOTKEY_IN_TABLE
public static final java.lang.String VALUE_PLOTKEY_IN_TABLE
PlotKey Type hint values -- in JTable- See Also:
- Constant Field Values
-
VALUE_PLOTKEY_NONE
public static final java.lang.String VALUE_PLOTKEY_NONE
PlotKey Type hint values -- no key- See Also:
- Constant Field Values
-
KEY_PLOTKEY_LOCATION
public static final java.lang.String KEY_PLOTKEY_LOCATION
PlotKey location hint key- See Also:
- Constant Field Values
-
KEY_LAYER_PLACEMENT
public static final java.lang.String KEY_LAYER_PLACEMENT
Layer Placement hint key- See Also:
- Constant Field Values
-
VALUE_LAYER_PLACEMENT_OVERLAY
public static final java.lang.String VALUE_LAYER_PLACEMENT_OVERLAY
Layer Placement hint values -- overlay- See Also:
- Constant Field Values
-
KEY_ASPECT_RATIO
public static final java.lang.String KEY_ASPECT_RATIO
AspectRatio hint key- See Also:
- Constant Field Values
-
VALUE_ASPECT_RATIO_LOCK
public static final java.lang.String VALUE_ASPECT_RATIO_LOCK
AspecRatio hint values -- lock X and Y scales- See Also:
- Constant Field Values
-
VALUE_ASPECT_RATIO_NO_LOCK
public static final java.lang.String VALUE_ASPECT_RATIO_NO_LOCK
AspecRatio hint values -- dont lock X and Y scales (during resize)- See Also:
- Constant Field Values
-
KEY_X_AXIS_LOCATION
public static final java.lang.String KEY_X_AXIS_LOCATION
Axis location should actually go through a series of steps X Axis Location 1) bottom of plot region 2) top of plot region 3) below bottom axis (increase border if needed) 4) above top axis (increase border if needed) Y Axis Locations 1) left of plot region 2) right of plot region 3) outside left axis (increase border if needed) 4) outside right axis (increase border if needed) X Axis Location hint key- See Also:
- Constant Field Values
-
VALUE_X_AXIS_LOCATION_DEFAULT
public static final java.lang.String VALUE_X_AXIS_LOCATION_DEFAULT
X Axis Location hint values -- default First try bottom, top, below bottom, then above top- See Also:
- Constant Field Values
-
VALUE_X_AXIS_LOCATION_BOTTOM
public static final java.lang.String VALUE_X_AXIS_LOCATION_BOTTOM
X Axis Location hint values -- bottom- See Also:
- Constant Field Values
-
VALUE_X_AXIS_LOCATION_TOP
public static final java.lang.String VALUE_X_AXIS_LOCATION_TOP
X Axis Location hint values -- top- See Also:
- Constant Field Values
-
KEY_Y_AXIS_LOCATION
public static final java.lang.String KEY_Y_AXIS_LOCATION
Y Axis Location hint key- See Also:
- Constant Field Values
-
VALUE_Y_AXIS_LOCATION_DEFAULT
public static final java.lang.String VALUE_Y_AXIS_LOCATION_DEFAULT
Y Axis Location hint values -- default First try left, right, outside right, then outside left- See Also:
- Constant Field Values
-
VALUE_Y_AXIS_LOCATION_LEFT
public static final java.lang.String VALUE_Y_AXIS_LOCATION_LEFT
Y Axis Location hint values -- left- See Also:
- Constant Field Values
-
VALUE_Y_AXIS_LOCATION_RIGHT
public static final java.lang.String VALUE_Y_AXIS_LOCATION_RIGHT
Y Axis Location hint values -- right- See Also:
- Constant Field Values
-
KEY_X_TRANSFORM
public static final java.lang.String KEY_X_TRANSFORM
Decision to create a new transform or re-use an existing transform should follow the following steps 1) Use transform from same LayerStack 2) Use transform from same JPlotPane 3) Create a new transform to use existing transform 1) both must be space or both time (test cant be defeated) 2) must have units that are convertable to existing transform 3) must have identical units X Transform hint key- See Also:
- Constant Field Values
-
VALUE_X_TRANSFORM_DEFAULT
public static final java.lang.String VALUE_X_TRANSFORM_DEFAULT
X Transform hint values -- default First try LayerStack, JPlotPane, then create new transform- See Also:
- Constant Field Values
-
VALUE_X_TRANSFORM_NEW
public static final java.lang.String VALUE_X_TRANSFORM_NEW
X Transform hint values -- new- See Also:
- Constant Field Values
-
VALUE_X_TRANSFORM_USEPLOTPANE
public static final java.lang.String VALUE_X_TRANSFORM_USEPLOTPANE
X Transform hint values -- use JPlotPane- See Also:
- Constant Field Values
-
KEY_Y_TRANSFORM
public static final java.lang.String KEY_Y_TRANSFORM
Y Transform hint key- See Also:
- Constant Field Values
-
VALUE_Y_TRANSFORM_DEFAULT
public static final java.lang.String VALUE_Y_TRANSFORM_DEFAULT
Y Transform hint values -- default First try LayerStack, JPlotPane, then create new transform- See Also:
- Constant Field Values
-
VALUE_Y_TRANSFORM_NEW
public static final java.lang.String VALUE_Y_TRANSFORM_NEW
Y Transform hint values -- new- See Also:
- Constant Field Values
-
VALUE_Y_TRANSFORM_USEPLOTPANE
public static final java.lang.String VALUE_Y_TRANSFORM_USEPLOTPANE
Y Transform hint values -- use JPlotPane- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlotLayerHints
public PlotLayerHints(java.util.Map init)
-
PlotLayerHints
public PlotLayerHints(java.lang.String key, java.lang.String value)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
putin interfacejava.util.Map
-
add
public void add(PlotLayerHints hints)
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Map
-
putAll
public void putAll(java.util.Map m)
- Specified by:
putAllin interfacejava.util.Map
-
keySet
public java.util.Set keySet()
- Specified by:
keySetin interfacejava.util.Map
-
values
public java.util.Collection values()
- Specified by:
valuesin interfacejava.util.Map
-
entrySet
public java.util.Set entrySet()
- Specified by:
entrySetin interfacejava.util.Map
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.util.Map- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map- Overrides:
hashCodein classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG