public class P2DAxisModel extends P2DComponentModel implements P2DAxisModelInterface
Modifier and Type | Field and Description |
---|---|
protected P2DRange1DInterface |
aRange
The autorange of the axis.
|
protected boolean |
autoRange
The autorange flag.
|
protected double |
base
The nice number base.
|
protected java.util.HashMap |
channels
A hashtable to hold the channel to be observed.
|
protected FwkAppearanceInterface |
gridAppearance
The grid appearance.
|
protected boolean |
gridFlag
The flag for the grid.
|
protected boolean |
minorTicksFlag
The minorTicks flag.
|
protected double[] |
niceNumbers
The vector that holds the nice numbers.
|
protected double |
position
The position of the axis.
|
protected P2DRange1DInterface |
range
The range of the axis.
|
static java.lang.String |
TEXT_FIELD_IDENT
The keyword of the pane hashtable and the command ident string.
|
protected double |
ticklen
The ticklen of the axis.
|
protected int |
ticksRequested
The total number of requested ticks.
|
protected P2DAttributorInterface |
tickvalueAttributor
The tickvalue attributor.
|
protected java.lang.String |
title
Title of the axis.
|
static java.lang.String |
TITLE_TEXT_KEY
The property keyword for the popupmneu text menuitem text and pane title.
|
static java.lang.String |
TITLE_TOOLTIP_KEY
The property keyword for the color pane tooltip.
|
protected double |
titleAlignment
The title alignment.
|
protected P2DAttributorInterface |
titleAttributor
The title attributor.
|
protected P2DAxisTypeInterface |
type
The axis type.
|
protected boolean |
valid |
static java.lang.String |
version |
static int |
WIDTH
The width constant of the input widget.
|
appearance, background, BACKGROUND_COLOR_IDENT, BACKGROUND_COLOR_TEXT_KEY, BACKGROUND_COLOR_TOOLTIP_KEY, BACKGROUND_VISIBLE_TEXT_KEY, boundingBox, COLOR_IDENT, COLOR_TEXT_KEY, COLOR_TOOLTIP_KEY, containerMap, decorated, FONT_IDENT, FONT_TEXT_KEY, FONT_TOOLTIP_KEY, frame, FRAME_COLOR_IDENT, FRAME_COLOR_TEXT_KEY, FRAME_COLOR_TOOLTIP_KEY, internalMouseListenerActive, PROPERTIES_TEXT_KEY, ratioFix, staticPanes, VISIBLE_TEXT_KEY
infoBusMemberSupport
changeManager, properties, suspendChangeManager
source
author, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, icon, ICON, iconCount, iconKey, internetAddress, name, titleName
INFOBUS_SOURCE
AUTHOR, 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_NAME
Constructor and Description |
---|
P2DAxisModel() |
Modifier and Type | Method and Description |
---|---|
void |
addChannel(P2DComponentInterface component,
P2DChannelInterface channel)
Add the channel to the observer list of the axis.
|
protected java.util.HashMap |
createDialogPanes(P2DComponentInterface component)
Create the static dialogpanes for components.
|
FwkArrayInterface |
getAttributedTickvalues(P2DComponentInterface component)
Get the nicenumber vector of strings from axis.
|
FwkArrayInterface |
getAttributedTitle(P2DComponentInterface component)
Get the title string of the axis.
|
boolean |
getAutoRange(P2DComponentInterface component)
Get the auto-range flag of the axis.
|
double |
getBase(P2DComponentInterface component)
Get the base of the nice number calculation.
|
P2DRange1DInterface |
getChannelRange(P2DComponentInterface component)
Get the range of the axis.
|
java.util.Iterator |
getChannels(P2DComponentInterface component)
Returns an iterator to registered channels.
|
FwkCommandInterface[] |
getCommands(P2DComponentInterface component)
Get the commands of the component.
|
java.util.HashMap |
getDialogPanes(P2DComponentInterface component)
Retrieves the property dialog panes in a hashtable.
|
java.util.HashMap |
getDialogPaneValues(P2DComponentInterface component)
Retrieves the property dialog pane values.
|
boolean |
getGrid(P2DComponentInterface component)
Get the grid state.
|
FwkAppearanceInterface |
getGridAppearance(P2DComponentInterface component)
Get the grid appearance.
|
java.awt.Color |
getGridColor(P2DComponentInterface component)
Get the grid color.
|
float |
getGridTransparency(P2DComponentInterface component)
Get the grid color transparency.
|
boolean |
getLog(P2DComponentInterface component)
Return a boolean whether the axis is a logarithmn type.
|
double |
getLowerLimit(P2DComponentInterface component)
Returns the lower value of the range.
|
boolean |
getMinorTicks(P2DComponentInterface component)
Get the minor ticks state.
|
double |
getMinPositiveValue(P2DComponentInterface component)
Returns the minimal positive value.
|
P2DRange1DInterface |
getNiceNumberCalculator(P2DComponentInterface component)
Returns the nicenumber creator.
|
P2DRange1DInterface |
getNiceNumberRange(P2DComponentInterface component)
Get the range of the nice numbers.
|
double |
getPosition(P2DComponentInterface component)
Get the position of the axis.
|
P2DRange1DInterface |
getRange(P2DComponentInterface component)
Returns the effective range of the axis.
|
java.awt.geom.Point2D |
getScalingVector(P2DComponentInterface component)
Retrieves the scaling vector of this axis.
|
java.lang.String |
getShortName(P2DComponentInterface component)
Get the short name of the container.
|
int |
getTickCount(P2DComponentInterface component)
Get the total number of ticks.
|
double |
getTicklen(P2DComponentInterface component)
Get the length of the ticks.
|
P2DAttributorInterface |
getTickvalueAttributor(P2DComponentInterface component)
Get the attributer for the tickvalues.
|
FwkArrayInterface |
getTickvalues(P2DComponentInterface component)
Get the nicenumber array.
|
java.lang.String |
getTitle(P2DComponentInterface component)
Get the title string of the axis.
|
double |
getTitleAlignment(P2DComponentInterface component)
Retrieve the title alignment of the axis.
|
P2DAttributorInterface |
getTitleAttributor(P2DComponentInterface component)
Get the title attributor.
|
P2DAxisTypeInterface |
getType(P2DComponentInterface component)
Get the type of the axis.
|
double |
getUpperLimit(P2DComponentInterface component)
Returns the upper value of the range.
|
void |
initialize()
Initialize the model.
|
boolean |
isValid(P2DComponentInterface component)
Returns a flag that indicates whether the view is currently valid.
|
void |
nextRangeStep(P2DComponentInterface component)
Set the range to the next range step.
|
void |
nextRangeWindow(P2DComponentInterface component)
Set the range to the next range window.
|
void |
prevRangeStep(P2DComponentInterface component)
Set the range to the prev range step.
|
void |
prevRangeWindow(P2DComponentInterface component)
Set the range to the prev range window.
|
void |
release()
Release axis.
|
void |
removeChannel(P2DComponentInterface component,
P2DChannelInterface channel)
Remove a channel from the observer list of the axis.
|
void |
revalidate(P2DComponentInterface component,
boolean recursive)
Revalidate the axis.
|
void |
revalidateChannels(P2DComponentInterface component)
Revalidate the channels
|
void |
setAutoRange(P2DComponentInterface component,
boolean flag)
Sets the auto-range flag of the axis.
|
void |
setBase(P2DComponentInterface component,
double base)
Set the base of the nice number calculation.
|
void |
setDialogPaneValues(P2DComponentInterface component,
java.util.HashMap values)
Sets the property dialog pane values for the component.
|
void |
setFullResolution(P2DComponentInterface component,
P2DContainerInterface container)
Set the range so that the full resolution is use for display.
|
void |
setGrid(P2DComponentInterface component,
boolean flag)
Turn on/off the grid.
|
void |
setGridAppearance(P2DComponentInterface component,
FwkAppearanceInterface appearance)
Set the grid appearance.
|
void |
setGridColor(P2DComponentInterface component,
java.awt.Color color)
Set the grid color.
|
void |
setGridTransparency(P2DComponentInterface component,
float transparency)
Set the grid color transparency.
|
void |
setLog(P2DComponentInterface component,
boolean flag)
Set the logarithmn type of the axis.
|
void |
setLowerLimit(P2DComponentInterface component,
double lower)
Set the lower value of the range.
|
void |
setMinorTicks(P2DComponentInterface component,
boolean flag)
Turn on/off the minor ticks.
|
void |
setNiceNumberCalculator(P2DComponentInterface component,
P2DRange1DInterface calculator)
Set the nicenumber creator.
|
void |
setPosition(P2DComponentInterface component,
double newPosition)
Set the position of the axis.
|
void |
setRange(P2DComponentInterface component,
P2DRange1DInterface newRange)
Set the range of the axis.
|
void |
setTickCount(P2DComponentInterface component,
int ticks)
Set the total number of ticks.
|
void |
setTicklen(P2DComponentInterface component,
double newTicklen)
Set the length of the ticks.
|
void |
setTickvalueAttributor(P2DComponentInterface component,
P2DAttributorInterface attributor)
Set the attributer for the tickvalues.
|
void |
setTitle(P2DComponentInterface component,
java.lang.String newTitle)
Set the title string of the axis.
|
void |
setTitleAlignment(P2DComponentInterface component,
double alignment)
Set the title alignment of the axis.
|
void |
setTitleAttributor(P2DComponentInterface component,
P2DAttributorInterface attributor)
Set the title attributor.
|
void |
setType(P2DComponentInterface component,
P2DAxisTypeInterface newType)
Set the type of the axis.
|
void |
setUpperLimit(P2DComponentInterface component,
double upper)
Set the upper value of the range.
|
void |
toBeginOfRange(P2DComponentInterface component)
Set the upper range value to the begin of autorange value.
|
void |
toEndOfRange(P2DComponentInterface component)
Set the lower range value to the end of autorange value.
|
void |
zoomIn(P2DComponentInterface component)
Zoom into.
|
void |
zoomOut(P2DComponentInterface component)
Zoom out.
|
addDialogPane, boundsAcceptable, calculateBoundingBoxRelativeTo, closestIntersection, configure, contains, contains, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getArea, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getClip, getColor, getContainerMap, getDashArray, getDashPhase, getDecorated, getDialogPane, getDialogPaneValue, getEndCap, getFill, getFont, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getInverseTransform, getLineJoin, getLineWidth, getLower, getLower, getMiterLimit, getRatioFix, getRectangle, getScaledHeight, getScaledLower, getScaledLower, getScaledUpper, getScaledUpper, getScaledWidth, getStroke, getTransform, getTransform, getTranslation, getTransparency, getUpper, getUpper, getVersion, getVisible, getWidth, getXFactor, getXOffset, getYFactor, getYOffset, hasActiveChild, install, intersects, intersects, intersects, intersects, inverseTransformPoint, isInside, isInside, isInside, isInternalMouseListenerActive, isVisible, move, registerContainer, release, removeDialogPane, resetActiveHandle, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setClip, setClip, setColor, setContainerMap, setDashArray, setDashPhase, setDecorated, setEndCap, setFill, setFont, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setHeight, setInternalMouseListenerActive, setLineJoin, setLineWidth, setLower, setMiterLimit, setOffset, setRatioFix, setScale, setStroke, setTransform, setTransform, setTranslation, setTransparency, setUpper, setVisible, setWidth, setXScale, setYScale, transformPoint, transformPoint, uninstall, unregisterContainer
addInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setName
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManager
addCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, removeCommand, removeFromGroup, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCommands, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSource, setSupportEMail, setTitleName
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEvents
getClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDialogPane, boundsAcceptable, calculateBoundingBoxRelativeTo, configure, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getContainerMap, getDecorated, getDialogPane, getDialogPaneValue, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getRatioFix, getTransform, getWidth, hasActiveChild, install, isInside, isInside, isInternalMouseListenerActive, registerContainer, removeDialogPane, resetActiveHandle, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setContainerMap, setDecorated, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setInternalMouseListenerActive, setRatioFix, setTransform, transformPoint, transformPoint, uninstall, unregisterContainer
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
getCommands, getPersistentObjectNames
destroyController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
getAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
getVersion
public static final java.lang.String version
public static final java.lang.String TITLE_TEXT_KEY
public static final java.lang.String TITLE_TOOLTIP_KEY
public static final java.lang.String TEXT_FIELD_IDENT
public static final int WIDTH
protected boolean valid
protected boolean gridFlag
protected boolean minorTicksFlag
protected P2DAxisTypeInterface type
protected double ticklen
protected java.lang.String title
protected double titleAlignment
protected P2DAttributorInterface titleAttributor
protected P2DAttributorInterface tickvalueAttributor
protected P2DRange1DInterface range
protected P2DRange1DInterface aRange
protected boolean autoRange
protected double[] niceNumbers
protected java.util.HashMap channels
protected double position
protected double base
protected FwkAppearanceInterface gridAppearance
protected int ticksRequested
public void release()
release
in interface FwkInterface
release
in interface javax.infobus.DataItem
release
in class P2DComponentModel
public void initialize()
initialize
in interface P2DModelInterface
initialize
in class P2DComponentModel
public boolean isValid(P2DComponentInterface component)
isValid
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public FwkArrayInterface getTickvalues(P2DComponentInterface component)
getTickvalues
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public FwkArrayInterface getAttributedTickvalues(P2DComponentInterface component)
getAttributedTickvalues
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setTickvalueAttributor(P2DComponentInterface component, P2DAttributorInterface attributor)
setTickvalueAttributor
in interface P2DAxisModelInterface
attributor
- The tick value attributor.component
- The component to that the model belongs.public P2DAttributorInterface getTickvalueAttributor(P2DComponentInterface component)
getTickvalueAttributor
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public P2DRange1DInterface getNiceNumberRange(P2DComponentInterface component)
getNiceNumberRange
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public P2DRange1DInterface getChannelRange(P2DComponentInterface component)
getChannelRange
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public P2DRange1DInterface getRange(P2DComponentInterface component)
getRange
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setRange(P2DComponentInterface component, P2DRange1DInterface newRange)
setRange
in interface P2DAxisModelInterface
range
- The new range of the axis.public double getMinPositiveValue(P2DComponentInterface component)
getMinPositiveValue
in interface P2DAxisModelInterface
public double getLowerLimit(P2DComponentInterface component)
getLowerLimit
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public double getUpperLimit(P2DComponentInterface component)
getUpperLimit
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setLowerLimit(P2DComponentInterface component, double lower)
setLowerLimit
in interface P2DAxisModelInterface
lower
- the lower value of the marker.component
- The component to that the model belongs.public void setUpperLimit(P2DComponentInterface component, double upper)
setUpperLimit
in interface P2DAxisModelInterface
upper
- the upper value of the marker.component
- The component to that the model belongs.public boolean getAutoRange(P2DComponentInterface component)
getAutoRange
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setAutoRange(P2DComponentInterface component, boolean flag)
setAutoRange
in interface P2DAxisModelInterface
flag
- The new auto-range flag of the axis.component
- The component to that the model belongs.public double getTicklen(P2DComponentInterface component)
getTicklen
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setTicklen(P2DComponentInterface component, double newTicklen)
setTicklen
in interface P2DAxisModelInterface
ticklen
- This value should be in the range of 0 ... 1.0public P2DAxisTypeInterface getType(P2DComponentInterface component)
getType
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setType(P2DComponentInterface component, P2DAxisTypeInterface newType)
setType
in interface P2DAxisModelInterface
The
- new axis type.
Use the predefined constants declaired in the P2DAxisModelInterface.public java.lang.String getTitle(P2DComponentInterface component)
getTitle
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setTitle(P2DComponentInterface component, java.lang.String newTitle)
setTitle
in interface P2DAxisModelInterface
newTitle
- The new title string.component
- The component to that the model belongs.public FwkArrayInterface getAttributedTitle(P2DComponentInterface component)
getAttributedTitle
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setTitleAttributor(P2DComponentInterface component, P2DAttributorInterface attributor)
setTitleAttributor
in interface P2DAxisModelInterface
attributor
- The attributor.component
- The component to that the model belongs.public P2DAttributorInterface getTitleAttributor(P2DComponentInterface component)
getTitleAttributor
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void addChannel(P2DComponentInterface component, P2DChannelInterface channel)
addChannel
in interface P2DAxisModelInterface
channel
- The channel to be observed.component
- The component to that the model belongs.public void removeChannel(P2DComponentInterface component, P2DChannelInterface channel)
removeChannel
in interface P2DAxisModelInterface
channel
- The channel to be observed.component
- The component to that the model belongs.public java.util.Iterator getChannels(P2DComponentInterface component)
getChannels
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public java.awt.geom.Point2D getScalingVector(P2DComponentInterface component)
public double getPosition(P2DComponentInterface component)
getPosition
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setPosition(P2DComponentInterface component, double newPosition)
setPosition
in interface P2DAxisModelInterface
newPosition
- The new axis position.component
- The component to that the model belongs.public boolean getLog(P2DComponentInterface component)
getLog
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setBase(P2DComponentInterface component, double base)
setBase
in interface P2DAxisModelInterface
base
- The new basepublic double getBase(P2DComponentInterface component)
getBase
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setLog(P2DComponentInterface component, boolean flag)
setLog
in interface P2DAxisModelInterface
flag
- true if axis is logarithmn.component
- The component to that the model belongs.public void revalidateChannels(P2DComponentInterface component)
public void revalidate(P2DComponentInterface component, boolean recursive)
revalidate
in interface P2DModelInterface
revalidate
in class P2DComponentModel
component
- The component that belongs to that model.public void setGrid(P2DComponentInterface component, boolean flag)
setGrid
in interface P2DAxisModelInterface
flag
- if true the grid is turned on.component
- The component to that the model belongs.public boolean getGrid(P2DComponentInterface component)
getGrid
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setGridAppearance(P2DComponentInterface component, FwkAppearanceInterface appearance)
setGridAppearance
in interface P2DAxisModelInterface
appearance
- The grid appearance.component
- The component to that the model belongs.public FwkAppearanceInterface getGridAppearance(P2DComponentInterface component)
getGridAppearance
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setGridColor(P2DComponentInterface component, java.awt.Color color)
setGridColor
in interface P2DAxisModelInterface
color
- the color for the grid.component
- The component to that the model belongs.public java.awt.Color getGridColor(P2DComponentInterface component)
getGridColor
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setGridTransparency(P2DComponentInterface component, float transparency)
setGridTransparency
in interface P2DAxisModelInterface
transparency
- the color transparency for the grid.component
- The component to that the model belongs.public float getGridTransparency(P2DComponentInterface component)
getGridTransparency
in interface P2DAxisModelInterface
component
- The component to that the model belongs.protected java.util.HashMap createDialogPanes(P2DComponentInterface component)
createDialogPanes
in class P2DComponentModel
public java.util.HashMap getDialogPaneValues(P2DComponentInterface component)
getDialogPaneValues
in interface P2DModelInterface
getDialogPaneValues
in class P2DComponentModel
component
- The component that belongs to that model.public void setDialogPaneValues(P2DComponentInterface component, java.util.HashMap values)
setDialogPaneValues
in interface P2DModelInterface
setDialogPaneValues
in class P2DComponentModel
values
- The hashtable with ident/value pairs.component
- The component that belongs to that model.public java.util.HashMap getDialogPanes(P2DComponentInterface component)
getDialogPanes
in interface P2DModelInterface
getDialogPanes
in class P2DComponentModel
component
- The component that belongs to that model.public FwkCommandInterface[] getCommands(P2DComponentInterface component)
getCommands
in interface P2DModelInterface
getCommands
in class P2DComponentModel
component
- The component that belongs to that model.public void zoomIn(P2DComponentInterface component)
zoomIn
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void zoomOut(P2DComponentInterface component)
zoomOut
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void toEndOfRange(P2DComponentInterface component)
toEndOfRange
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void toBeginOfRange(P2DComponentInterface component)
toBeginOfRange
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void nextRangeWindow(P2DComponentInterface component)
nextRangeWindow
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void prevRangeWindow(P2DComponentInterface component)
prevRangeWindow
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void nextRangeStep(P2DComponentInterface component)
nextRangeStep
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void prevRangeStep(P2DComponentInterface component)
prevRangeStep
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setFullResolution(P2DComponentInterface component, P2DContainerInterface container)
setFullResolution
in interface P2DAxisModelInterface
container
- The container that set the transformation.component
- The component to that the model belongs.public java.lang.String getShortName(P2DComponentInterface component)
getShortName
in interface P2DModelInterface
getShortName
in class P2DComponentModel
component
- The component that belongs to that model.public int getTickCount(P2DComponentInterface component)
getTickCount
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setTickCount(P2DComponentInterface component, int ticks)
setTickCount
in interface P2DAxisModelInterface
component
- The component to that the model belongs.count
- The total number of ticks. Set it to 0 if you wants that the
axis determines the number itself.public void setNiceNumberCalculator(P2DComponentInterface component, P2DRange1DInterface calculator)
setNiceNumberCalculator
in interface P2DAxisModelInterface
component
- The component to that the model belongs.calculator
- The calculator.public P2DRange1DInterface getNiceNumberCalculator(P2DComponentInterface component)
getNiceNumberCalculator
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setTitleAlignment(P2DComponentInterface component, double alignment)
setTitleAlignment
in interface P2DAxisModelInterface
component
- The component to that the model belongs.alignment
- the alignment (default is 0.5 / center)public double getTitleAlignment(P2DComponentInterface component)
getTitleAlignment
in interface P2DAxisModelInterface
component
- The component to that the model belongs.public void setMinorTicks(P2DComponentInterface component, boolean flag)
setMinorTicks
in interface P2DAxisModelInterface
component
- The component to that the model belongs.flag
- if true the minor ticks is turned on.public boolean getMinorTicks(P2DComponentInterface component)
getMinorTicks
in interface P2DAxisModelInterface
component
- The component to that the model belongs.