|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.beans.AxisHolder
public class AxisHolder
Contains the data necessary to instantiate an axis.
This class is used with DataGroup
.
Constructor Summary | |
---|---|
AxisHolder()
Default constructor. |
|
AxisHolder(int type,
int dir,
DataGroup dataGroup)
Construct a new AxisHolder . |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Add a ChangeListener . |
java.awt.Color |
getAxisColor()
Get the axis color. |
int |
getAxisOrientation()
Get the axis orientation. |
Point2D.Double |
getAxisOriginP()
Get axis origin. |
int |
getAxisPosition()
Get the axis position |
int |
getAxisType()
Get the axis type. |
Rectangle2D |
getBoundsP()
Get axis bounds. |
DataGroup |
getDataGroup()
Get the DataGroup parent. |
java.awt.Color |
getLabelColor()
Get the axis label color. |
java.awt.Font |
getLabelFont()
Get the axis label font. |
java.lang.String |
getLabelFormat()
Get the label format. |
double |
getLabelHeightP()
Get label height. |
int |
getLabelInterval()
Get the label interval. |
int |
getLabelPosition()
If labelPosition is AUTO then return computed labelPosition, otherwise return stored value |
int |
getLabelSignificantDigits()
Get axis label significant digits |
double |
getLargeTicHeightP()
Get large tic height. |
java.lang.String |
getMajorFormat()
Get time axis major label format |
int |
getMajorInterval()
Get time axis major label interval |
java.lang.String |
getMinorFormat()
Get time axis minor label format. |
int |
getMinorInterval()
Get time axis minor label interval |
int |
getNumSmallTics()
Get the number of small tics. |
Range2D |
getRangeP()
Get range of axis (long direction) in physical coordinates. |
double |
getSmallTicHeightP()
Get small tic height. |
double |
getThickTicWidth()
Get the thick tic width. |
int |
getTicPosition()
If ticPosition is AUTO then returns computed position, otherwise returns stored value. |
int |
getTimeAxisStyle()
Get the time axis style. |
SGLabel |
getTitle()
Get the axis title. |
java.lang.String |
getTransformGroup()
Get transform group name. |
int |
getTransformType()
Get the axis transform type. |
SoTRange |
getUserRange()
Get the user range. |
boolean |
isAutoRange()
Test if the axis in autoRange mode. |
boolean |
isLabelPositionAuto()
Test if label position in auto mode. |
boolean |
isLocationAtOrigin()
Test if the axis at the origin. |
boolean |
isSelectable()
Test if the axis selectable. |
boolean |
isTicPositionAuto()
Test if tic position in auto mode. |
boolean |
isTime()
Test if the axis time. |
boolean |
isTitleAuto()
Test if the title in auto mode. |
boolean |
isVisible()
Test if the axis visible. |
void |
removeAllChangeListeners()
Remove all ChangeListener s. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Remove a ChangeListener . |
void |
removeDesignChangeListeners()
Remove all ChangeListener s that implement the
DesignListener interface. |
void |
setAutoRange(boolean autoRange)
Set autoRange property. |
void |
setAxisColor(java.awt.Color axisColor)
Set axis color. |
void |
setAxisOrientation(int dir)
Set the axis orientation. |
void |
setAxisOriginP(Point2D.Double axisOriginP)
Set the axis origin in physical coordinates. |
void |
setAxisPosition(int axisPosition)
Set the axis position. |
void |
setAxisType(int axisType)
Set the axis type. |
void |
setBoundsP(Rectangle2D boundsP)
Set bounds of axis in physical coordinates. |
void |
setDataGroup(DataGroup dataGroup)
Set the parent DataGroup . |
void |
setLabelColor(java.awt.Color labelColor)
Set axis label color. |
void |
setLabelFont(java.awt.Font labelFont)
Set the axis label font. |
void |
setLabelFormat(java.lang.String labelFormat)
Set the axis label format. |
void |
setLabelHeightP(double labelHeightP)
Set label height in physical coordinates (inches). |
void |
setLabelInterval(int labelInterval)
Set the label interval. |
void |
setLabelPosition(int labelPosition)
Set the label position. |
void |
setLabelSignificantDigits(int labelSignificantDigits)
Set the axis label significant digits. |
void |
setLargeTicHeightP(double largeTicHeightP)
Set large tic height in physical coordinates. |
void |
setLocationAtOrigin(boolean locationAtOrigin)
Set axis at origin of perpendicular axis. |
void |
setMajorFormat(java.lang.String majorFormat)
Get the time axis major label format. |
void |
setMajorInterval(int majorInterval)
Set time axis major label interval. |
void |
setMinorFormat(java.lang.String minorFormat)
Set the time axis minor label format. |
void |
setMinorInterval(int minorInterval)
Set time axis minor label interval. |
void |
setNumSmallTics(int numSmallTics)
Set the number of small tics between the large tics. |
void |
setSelectable(boolean selectable)
Set the selecatability of the axis. |
void |
setSmallTicHeightP(double smallTicHeightP)
Set small tic height in physical coordinates. |
void |
setThickTicWidth(double thickTicWidth)
Set the thick tic width (for Time axes). |
void |
setTicPosition(int ticPosition)
Set the tic position. |
void |
setTimeAxisStyle(int timeAxisStyle)
Set the time axis style. |
void |
setTitle(SGLabel title)
Set the axis title. |
void |
setTitleAuto(boolean titleAuto)
Set the title auto property. |
void |
setTransformGroup(java.lang.String transformGroup)
Set the transform group. |
void |
setTransformType(int transformType)
Set the axis transform type. |
void |
setUserRange(SoTRange userRange)
Set the user range. |
void |
setVisible(boolean visible)
Set/unset the axis visibility. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisHolder()
public AxisHolder(int type, int dir, DataGroup dataGroup)
AxisHolder
. This constructor includes the
necessary fields.
type
- Type of axisdir
- Direction of axisdataGroup
- DataGroup parentsetAxisType
,
setAxisOrientation
,
setDataGroup
Method Detail |
---|
public DataGroup getDataGroup()
DataGroup
parent.
public void setDataGroup(DataGroup dataGroup)
DataGroup
. No default.
dataGroup
- Parent object to AxisHolderpublic boolean isTime()
public void removeChangeListener(javax.swing.event.ChangeListener l)
ChangeListener
.
l
- ChangeListener to removepublic void addChangeListener(javax.swing.event.ChangeListener l)
ChangeListener
. Listener will be notified if a change
occurs.
l
- ChangeListener to add.public void removeDesignChangeListeners()
ChangeListener
s that implement the
DesignListener
interface.
DesignListener
public void removeAllChangeListeners()
ChangeListener
s.
public void setAxisType(int axisType)
axisType = DataGroup.PLAIN, DataGroup.TIME, or DataGroup.LOGNo default.
axisType
- (see above)public int getAxisType()
public int getAxisOrientation()
public void setAxisOrientation(int dir)
axisOrientation = DataGroup.X_DIR or DataGroup.Y_DIRNo default.
dir
- axis orientationpublic void setAxisColor(java.awt.Color axisColor)
axisColor
- axis colorpublic java.awt.Color getAxisColor()
public void setAutoRange(boolean autoRange)
autoRange
- auto rangepublic boolean isAutoRange()
public void setUserRange(SoTRange userRange)
userRange
- user supplied rangepublic SoTRange getUserRange()
public void setLabelColor(java.awt.Color labelColor)
labelColor
- label colorpublic java.awt.Color getLabelColor()
public void setLabelFont(java.awt.Font labelFont)
labelFont
- label fontpublic java.awt.Font getLabelFont()
public void setLabelHeightP(double labelHeightP)
labelHeightP
- label heightpublic double getLabelHeightP()
public void setLabelPosition(int labelPosition)
labelPosition = Axis.AUTO, Axis.POSITIVE_SIDE, Axis.NEGATIVE_SIDE, Axis.NO_LABELDefault = AUTO.
labelPosition
- label positionpublic boolean isLabelPositionAuto()
public int getLabelPosition()
public void setBoundsP(Rectangle2D boundsP)
boundsP
- axis boundspublic Rectangle2D getBoundsP()
public Range2D getRangeP()
public void setLargeTicHeightP(double largeTicHeightP)
largeTicHeightP
- large tic heightpublic double getLargeTicHeightP()
public void setSmallTicHeightP(double smallTicHeightP)
smallTicHeightP
- small tic heightpublic double getSmallTicHeightP()
public void setNumSmallTics(int numSmallTics)
numSmallTics
- number of small ticspublic int getNumSmallTics()
public void setThickTicWidth(double thickTicWidth)
thickTicWidth
- thick tic widthpublic double getThickTicWidth()
public void setTicPosition(int ticPosition)
ticPosition = Axis.AUTO, Axis.POSITIVE_SIDE, Axis.NEGATIVE_SIDE, Axis.BOTH_SIDESDefault = AUTO.
ticPosition
- tic positionpublic boolean isTicPositionAuto()
public int getTicPosition()
public void setTitle(SGLabel title)
SGLabel
enabling the Color,
Font, size to be set.
title
- axis titlepublic SGLabel getTitle()
public void setSelectable(boolean selectable)
selectable
- selectablepublic boolean isSelectable()
public void setVisible(boolean visible)
visible
- visiblepublic boolean isVisible()
public void setLabelFormat(java.lang.String labelFormat)
labelFormat
- axis label formatpublic java.lang.String getLabelFormat()
public void setLabelInterval(int labelInterval)
labelInterval
- axis label intervalpublic int getLabelInterval()
public void setLabelSignificantDigits(int labelSignificantDigits)
labelSignificantDigits
- axis label significant digitspublic int getLabelSignificantDigits()
public void setMinorFormat(java.lang.String minorFormat)
minorFormat
- time axis minor formatpublic java.lang.String getMinorFormat()
public void setMajorFormat(java.lang.String majorFormat)
majorFormat
- time axis major formatpublic java.lang.String getMajorFormat()
public void setMinorInterval(int minorInterval)
minorInterval
- time axis minor intervalpublic int getMinorInterval()
public void setMajorInterval(int majorInterval)
majorInterval
- time axis major intervalpublic int getMajorInterval()
public void setTimeAxisStyle(int timeAxisStyle)
timeAxisStyle = TimeAxis.AUTO, TimeAxis.DAY_MONTH, TimeAxis.HOUR_DAY, TimeAxis.MINUTE_HOUR, TimeAxis.MONTH_YEAR, TimeAxis.YEAR_DECADEDefault = AUTO.
timeAxisStyle
- time axis stylepublic int getTimeAxisStyle()
public void setTransformType(int transformType)
transformType = DataGroup.LINEAR, DataGroup.LOG, DataGroup.REFERENCEDefault = LINEAR.
transformType
- axis transform typepublic int getTransformType()
public void setTransformGroup(java.lang.String transformGroup)
DataGroup
id containing the transform to be referenced.
No default.
transformGroup
- axis transform group namepublic java.lang.String getTransformGroup()
public void setAxisPosition(int axisPosition)
axisPosition = DataGroup.TOP, DataGroup.BOTTOM, (for x axes) DataGroup.LEFT, DataGroup.RIGHT, (for y axes) DataGroup.MANUALNo default.
axisPosition
- axis positionpublic int getAxisPosition()
public void setAxisOriginP(Point2D.Double axisOriginP)
axisOriginP
- axis originpublic Point2D.Double getAxisOriginP()
public void setLocationAtOrigin(boolean locationAtOrigin)
locationAtOrigin
- set location at originpublic boolean isLocationAtOrigin()
public void setTitleAuto(boolean titleAuto)
titleAuto
- auto title propertypublic boolean isTitleAuto()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |