|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.beans.DataGroup
public class DataGroup
A holder for the X and Y transforms and optionally references to the
X and Y axes for a CartesianGraph
. This class is used with DataModel
and Panel
.
Field Summary | |
---|---|
static int |
BOTTOM
X axis placed at bottom of DataGroup area. |
static int |
LEFT
Y axis placed left of DataGroup area. |
static int |
LINEAR
Linear transform type. |
static int |
LOG
Log transform type. |
static int |
MANUAL
Axes placed in default locations. |
static int |
PLAIN
Plain linear axis type. |
static int |
REFERENCE
Refer to a transform in another DataGroup . |
static int |
RIGHT
Y axis placed right of DataGroup area. |
static int |
TIME
Time axis type. |
static int |
TOP
X axis placed at top of DataGroup area. |
static int |
X_DIR
X direction. |
static int |
Y_DIR
Y direction. |
Constructor Summary | |
---|---|
DataGroup()
Default constructor. |
|
DataGroup(java.lang.String id,
PanelHolder ph)
Simple constructor. |
|
DataGroup(java.lang.String id,
PanelHolder ph,
int xt,
int xAxis,
int yt,
int yAxis)
Full constructor. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Add changelistener |
protected void |
fireStateChanged()
|
java.lang.String |
getId()
Get datagroup id. |
Margin |
getMargin()
Get the margin. |
int |
getNumberAutoContourLevels()
Get number of auto contour levels. |
PanelHolder |
getPanelHolder()
Get parent. |
AxisHolder |
getXAxisHolder()
Get X axisholder |
AxisHolder |
getYAxisHolder()
Get Y axisholder. |
SoTRange |
getZRangeU()
Get Z range. |
boolean |
isInstantiated()
Is datagrouplayer instantiated? |
boolean |
isZAutoScale()
Is auto Z scale? |
boolean |
isZoomable()
Is datagroup zoomable? |
void |
removeAllChangeListeners()
Remove all ChangeListener s. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Remove changelistener. |
void |
removeDesignChangeListeners()
Remove all ChangeListener s that implement the
DesignListener interface. |
void |
setId(java.lang.String id)
Set datagroup id. |
void |
setInstantiated(boolean instantiated)
Set instantiated. |
void |
setMargin(float top,
float left,
float bottom,
float right)
Set the Margin. |
void |
setMargin(Margin margin)
Set the margin. |
void |
setNumberAutoContourLevels(int numberAutoContourLevels)
Set number of auto contour levels. |
void |
setPanelHolder(PanelHolder ph)
Set panelhodler parent. |
void |
setXAxisHolder(AxisHolder xah)
Set X axisholder |
void |
setYAxisHolder(AxisHolder yah)
Set Y axisholder |
void |
setZAutoScale(boolean zAutoScale)
Set auto Z scale. |
void |
setZoomable(boolean zoomable)
Set datagroup zoomable. |
void |
setZRangeU(SoTRange zRange)
Set Z range, user units. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
ChangeListner callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TOP
DataGroup
area.
public static final int BOTTOM
DataGroup
area.
public static final int LEFT
DataGroup
area.
public static final int RIGHT
DataGroup
area.
public static final int MANUAL
public static final int LINEAR
public static final int LOG
public static final int REFERENCE
DataGroup
.
public static final int TIME
public static final int PLAIN
public static final int X_DIR
public static final int Y_DIR
Constructor Detail |
---|
public DataGroup()
PanelHodler
is set to null
.
X and Y transforms are LINEAR and axes PLAIN.
public DataGroup(java.lang.String id, PanelHolder ph)
id
- data group idph
- panelholder parentpublic DataGroup(java.lang.String id, PanelHolder ph, int xt, int xAxis, int yt, int yAxis)
id
- data group idph
- panelholder parentxt
- x transform typexAxis
- x axis typeyt
- y transform typeyAxis
- y axis typeMethod Detail |
---|
public void setPanelHolder(PanelHolder ph)
ph
- panelholder parentpublic PanelHolder getPanelHolder()
public AxisHolder getXAxisHolder()
public void setXAxisHolder(AxisHolder xah)
xah
- x axisholderpublic AxisHolder getYAxisHolder()
public void setYAxisHolder(AxisHolder yah)
yah
- y axisholderpublic java.lang.String getId()
public void setId(java.lang.String id)
id
- datagroup idpublic Margin getMargin()
public void setMargin(Margin margin)
Panel
. The margin is the distance from each edge of the
Panel
to the DataGroup
.
Default is (0.25f, 0.5f, 0.5f, 0.25f)
margin
- marginpublic void setMargin(float top, float left, float bottom, float right)
top
- top marginleft
- left marginbottom
- bottom marginright
- right marginpublic void removeAllChangeListeners()
ChangeListener
s.
public void setZAutoScale(boolean zAutoScale)
zAutoScale
- autoscale if truepublic boolean isZAutoScale()
public void setZRangeU(SoTRange zRange)
zRange
- Z rangepublic SoTRange getZRangeU()
public void setZoomable(boolean zoomable)
zoomable
- datagroup zoomablepublic boolean isZoomable()
public void removeChangeListener(javax.swing.event.ChangeListener l)
l
- changelistenerpublic void addChangeListener(javax.swing.event.ChangeListener l)
l
- changelistenerpublic void removeDesignChangeListeners()
ChangeListener
s that implement the
DesignListener
interface.
DesignListener
protected void fireStateChanged()
public void setInstantiated(boolean instantiated)
DataGroupLayer
object has been created
this property is set true. Used internally.
instantiated
- true if instantiatedpublic boolean isInstantiated()
public void stateChanged(javax.swing.event.ChangeEvent e)
ChangeListner
callback.
stateChanged
in interface javax.swing.event.ChangeListener
e
- ChangeEventpublic int getNumberAutoContourLevels()
public void setNumberAutoContourLevels(int numberAutoContourLevels)
numberAutoContourLevels
- number of contour levels
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |