public interface P2DAxisInterface extends P2DComponentInterface, P2DAutoRangeInterface
| Modifier and Type | Field and Description |
|---|---|
static java.awt.BasicStroke |
DASH_GRID
The DASH grid stroke.
|
static java.awt.BasicStroke |
DOT_DASH_GRID
The DOT DASH grid stroke.
|
static java.awt.BasicStroke |
DOT_DOT_DASH_GRID
The DOT DOT DASH grid stroke.
|
static java.awt.BasicStroke |
DOT_GRID
The DOT grid stroke.
|
CONTROL_KEY, MODEL_KEY, VIEW_KEYINFOBUS_SOURCEAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAMEDASH_STROKE, DOT_DASH_STROKE, DOT_DOT_DASH_STROKE, DOT_STROKE, LINE_STROKE| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(P2DChannelInterface channel)
Add the channel to the observer list of the axis.
|
void |
drawGrid(java.awt.Graphics2D g,
P2DRange1DInterface range)
Draw the grid of the axis.
|
FwkArrayInterface |
getAttributedTickvalues()
Get the nicenumber vector of strings from axis.
|
FwkArrayInterface |
getAttributedTitle()
Get the attributed title string of the axis.
|
boolean |
getAutoRange()
Get the auto-range flag of the axis.
|
double |
getBase()
Get the base of the nice number calculation.
|
P2DRange1DInterface |
getChannelRange()
Get the channel range of the axis.
|
java.util.Iterator |
getChannels()
Get the list of channels.
|
boolean |
getGrid()
Get the grid state.
|
FwkAppearanceInterface |
getGridAppearance()
Get the grid appearance.
|
java.awt.Color |
getGridColor()
Get the grid color.
|
float |
getGridTransparency()
Get the grid color transparency.
|
boolean |
getLog()
Return a boolean whether the axis is a logarithmn type.
|
boolean |
getMinorTicks()
Get the minor ticks state.
|
P2DRange1DInterface |
getNiceNumberCalculator()
Returns the nicenumber creator.
|
P2DRange1DInterface |
getNiceNumberRange()
Get the range of the nice numbers.
|
double |
getPosition()
Get the position of the axis.
|
P2DRange1DInterface |
getRange()
Returns the effective range of the axis.
|
int |
getTickCount()
Get the total number of ticks.
|
double |
getTicklen()
Get the length of the ticks.
|
P2DAttributorInterface |
getTickvalueAttributor()
Get the attributer for the tickvalues.
|
FwkArrayInterface |
getTickvalues()
Get the nicenumber array.
|
java.lang.String |
getTitle()
Get the title string of the axis.
|
double |
getTitleAlignment()
Retrieve the title alignment of the axis.
|
P2DAttributorInterface |
getTitleAttributor()
Get the title attributer.
|
P2DAxisTypeInterface |
getType()
Get the type of the axis.
|
boolean |
isValid()
Returns a flag that indicates whether the view is currently valid.
|
void |
nextRangeStep()
Set the range to the next range step.
|
void |
nextRangeWindow()
Set the range to the next range window.
|
void |
prevRangeStep()
Set the range to the prev range step.
|
void |
prevRangeWindow()
Set the range to the prev range window.
|
void |
removeChannel(P2DChannelInterface channel)
Remove a channel from the observer list of the axis.
|
void |
setAutoRange(boolean flag)
Sets the auto-range flag of the axis.
|
void |
setBase(double base)
Set the base of the nice number calculation.
|
void |
setFullResolution(P2DContainerInterface container)
Set the range so that the full resolution is used for display.
|
void |
setGrid(boolean flag)
Turn on/off the grid.
|
void |
setGridAppearance(FwkAppearanceInterface appearance)
Set the grid appearance.
|
void |
setGridColor(java.awt.Color color)
Set the grid color.
|
void |
setGridTransparency(float transparency)
Set the grid color transparency.
|
void |
setLog(boolean flag)
Set the logarithmn type of the axis.
|
void |
setMinorTicks(boolean flag)
Turn on/off the minor ticks.
|
void |
setNiceNumberCalculator(P2DRange1DInterface calculator)
Set the nicenumber creator.
|
void |
setPosition(double newPosition)
Set the position of the axis.
|
void |
setRange(P2DRange1DInterface newRange)
Sets the range of the axis.
|
void |
setTickCount(int ticks)
Set the total number of ticks.
|
void |
setTicklen(double newTicklen)
Set the length of the ticks.
|
void |
setTickvalueAttributor(P2DAttributorInterface attributor)
Set the attributer for the tickvalues.
|
void |
setTitle(java.lang.String newTitle)
Set the title string of the axis.
|
void |
setTitleAlignment(double alignment)
Set the title alignment of the axis.
|
void |
setTitleAttributor(P2DAttributorInterface attributor)
Set the title attributer.
|
void |
setType(P2DAxisTypeInterface newType)
Set the type of the axis.
|
void |
toBeginOfRange()
Set the upper range value to the begin of autorange value.
|
void |
toEndOfRange()
Set the lower range value to the end of autorange value.
|
void |
zoomIn()
Zoom into.
|
void |
zoomOut()
Zoom out.
|
askForName, calculateBoundingBoxRelativeTo, getControl, getControlClassId, getDialogPane, getDialogPanes, getDialogPaneValue, getDialogPaneValues, getInternalMouseListenerActive, getModel, getModelClassId, getRegisterCounter, getView, getViewClassId, initialize, isInternalMouseListenerActive, isMVCValid, loadControl, loadModel, loadView, paint, paint, processFocusEvent, processMouseEvent, register, setControl, setControlClassId, setDialogPaneValues, setInternalMouseListenerActive, setModel, setModelClassId, setView, setViewClassId, unregister, unregister, update, updateControl, updateModel, updateViewaddContainerListener, addFocusListener, addListener, addMouseListener, addMouseMotionListener, addOrderListener, addP2D, addP2D, addP2D, addP2D, addRepaintListener, fireOrderEvent, getActive, getActiveComponent, getAllArmedComponents, getAllArmedComponents, getArmedComponent, getComponentCommands, getContainerListenerArray, getFocusListenerArray, getListenerArray, getMouseListenerArray, getMouseMotionListenerArray, getOrderListenerArray, getP2D, getP2D, getP2D, getP2DComponentArray, getP2DComponents, getParentContainer, getRepaintListenerArray, getSelectable, getShortName, getTreeLock, openPopupMenu, removeAllP2D, removeContainerListener, removeFocusListener, removeListener, removeMouseListener, removeMouseMotionListener, removeOrderListener, removeP2D, removeP2D, removeRepaintListener, repaint, restoreLastMouseEvent, restoreLocalMousePoint, revalidate, saveLastMouseEvent, saveLocalMousePoint, setActive, setActiveComponent, setParentContainer, setSelectable, toBack, toBack, toBack, toFront, toFront, toFrontgetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringgetVersion, releaseaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXMLconfigure, getBackgroundColor, getClip, getColor, getDashArray, getDashPhase, getEndCap, getFill, getFont, getLineJoin, getLineWidth, getMiterLimit, getStroke, getTransform, getTranslation, getTransparency, getVisible, isVisible, scaleStroke, scaleStroke, setBackgroundColor, setClip, setClip, setColor, setDashArray, setDashPhase, setEndCap, setFill, setFont, setLineJoin, setLineWidth, setMiterLimit, setScale, setStroke, setTransform, setTranslation, setTransparency, setVisibleaddDialogPane, boundsAcceptable, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAppearance, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getContainerMap, getDecorated, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getRatioFix, getTransform, getWidth, hasActiveChild, isInside, isInside, registerContainer, removeDialogPane, resetActiveHandle, revalidate, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setContainerMap, setDecorated, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setRatioFix, setTransform, transformPoint, transformPoint, unregisterContainerfocusGained, focusLost, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleasedgetLowerLimit, getUpperLimit, setLowerLimit, setUpperLimitstatic final java.awt.BasicStroke DOT_GRID
static final java.awt.BasicStroke DASH_GRID
static final java.awt.BasicStroke DOT_DASH_GRID
static final java.awt.BasicStroke DOT_DOT_DASH_GRID
boolean isValid()
P2DRange1DInterface getNiceNumberRange()
P2DRange1DInterface getChannelRange()
P2DRange1DInterface getRange()
getRange in interface P2DRangeInterfacevoid setRange(P2DRange1DInterface newRange)
setRange in interface P2DRangeInterfacenewRange - The range of the axis.boolean getAutoRange()
getAutoRange in interface P2DAutoRangeInterfacevoid setAutoRange(boolean flag)
setAutoRange in interface P2DAutoRangeInterfaceflag - The new auto-range flag of the axis.java.lang.String getTitle()
getTitle in interface FwkDescriptionInterfacevoid setTitle(java.lang.String newTitle)
newTitle - The new title string.FwkArrayInterface getAttributedTitle()
void setTitleAttributor(P2DAttributorInterface attributor)
attributor - The title attributerP2DAttributorInterface getTitleAttributor()
void addChannel(P2DChannelInterface channel)
channel - The channel to be observed.void removeChannel(P2DChannelInterface channel)
channel - The channel to be observed.java.util.Iterator getChannels()
double getPosition()
void setPosition(double newPosition)
newPosition - The new axis position.FwkArrayInterface getTickvalues()
FwkArrayInterface getAttributedTickvalues()
void setTickvalueAttributor(P2DAttributorInterface attributor)
attributor - The tick value attributor.P2DAttributorInterface getTickvalueAttributor()
The - tick value attributor.double getTicklen()
void setTicklen(double newTicklen)
ticklen - This value should be in the range of 0 ... 1.0P2DAxisTypeInterface getType()
void setType(P2DAxisTypeInterface newType)
The - new axis type. Use the predefined constants declaired in the P2DAxisModelInterface.boolean getLog()
void setLog(boolean flag)
flag - true if axis is logarithmn.void setBase(double base)
base - The new basedouble getBase()
void setGrid(boolean flag)
flag - if true the grid is turned on.boolean getGrid()
void setGridAppearance(FwkAppearanceInterface appearance)
appearance - The grid appearance.FwkAppearanceInterface getGridAppearance()
void setGridColor(java.awt.Color color)
color - the color for the grid.java.awt.Color getGridColor()
void setGridTransparency(float transparency)
transparency - the color transparency for the grid.float getGridTransparency()
void drawGrid(java.awt.Graphics2D g,
P2DRange1DInterface range)
g - The graphical context.range - The range for the grid.void zoomIn()
void zoomOut()
void toEndOfRange()
void toBeginOfRange()
void nextRangeWindow()
void prevRangeWindow()
void nextRangeStep()
void prevRangeStep()
void setFullResolution(P2DContainerInterface container)
container - The container that set the transformation.int getTickCount()
void setTickCount(int ticks)
count - The total number of ticks. Set it to 0 if you wants that the
axis determines the number itself.void setNiceNumberCalculator(P2DRange1DInterface calculator)
calculator - The calculator.P2DRange1DInterface getNiceNumberCalculator()
void setTitleAlignment(double alignment)
alignment - the alignment (default is 0.5 / center)double getTitleAlignment()
void setMinorTicks(boolean flag)
flag - if true the minor ticks is turned on.boolean getMinorTicks()