public class P2DLegendModel extends P2DComponentModel implements P2DLegendModelInterface, FwkPropertyChangeListenerInterface
| Modifier and Type | Field and Description |
|---|---|
protected float |
alignment
The alignment value.
|
protected P2DAttributorInterface |
attributor
The attributor.
|
protected static int |
INCREMENT |
static java.lang.String |
version |
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_KEYinfoBusMemberSupportchangeManager, properties, suspendChangeManagersourceauthor, 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, titleNameINFOBUS_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_NAME| Constructor and Description |
|---|
P2DLegendModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(P2DLegendInterface component,
P2DChannelInterface channel)
Add a channel component to the legend.
|
void |
addChannel(P2DLegendInterface component,
java.lang.String name)
Add a channel component to the legend.
|
protected void |
addName(java.lang.String name)
Add the given name to the array.
|
float |
getAlignment(P2DLegendInterface component)
Get the alignment value.
|
FwkArrayInterface |
getAttributedText(P2DLegendInterface component)
Get the attributed string of the text.
|
P2DAttributorInterface |
getAttributor(P2DLegendInterface component)
Get the title attributor.
|
java.lang.String[] |
getChannelNames(P2DLegendInterface component)
Get an array containing all the names.
|
P2DChannelInterface[] |
getChannels(P2DLegendInterface component)
Get an array containing all channels.
|
void |
initialize()
Initialize
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
The property change listener.
|
void |
removeAllChannels(P2DLegendInterface component)
Remove all channel components from the legend.
|
protected void |
removeAllNames(P2DLegendInterface component)
Remove all names from the array.
|
void |
removeChannel(P2DLegendInterface component,
P2DChannelInterface channel)
Remove a channel component to the legend.
|
void |
removeChannel(P2DLegendInterface component,
java.lang.String name)
Remove a channel component to the legend.
|
protected void |
removeName(java.lang.String name)
Remove the given name from the array.
|
void |
setAlignment(P2DLegendInterface component,
float ali)
Set the alignment of the text.
|
void |
setAttributor(P2DLegendInterface component,
P2DAttributorInterface attributor)
Set the title attributor.
|
addDialogPane, boundsAcceptable, calculateBoundingBoxRelativeTo, closestIntersection, configure, contains, contains, containsAllChildren, containsAllChildren, createDialogPanes, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getArea, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getClip, getColor, getCommands, getContainerMap, getDashArray, getDashPhase, getDecorated, getDialogPane, getDialogPanes, getDialogPaneValue, getDialogPaneValues, getEndCap, getFill, getFont, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getInverseTransform, getLineJoin, getLineWidth, getLower, getLower, getMiterLimit, getRatioFix, getRectangle, getScaledHeight, getScaledLower, getScaledLower, getScaledUpper, getScaledUpper, getScaledWidth, getShortName, 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, release, removeDialogPane, resetActiveHandle, revalidate, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setClip, setClip, setColor, setContainerMap, setDashArray, setDashPhase, setDecorated, setDialogPaneValues, 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, unregisterContaineraddInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setNameaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManageraddCommand, 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, setTitleNameaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDialogPane, boundsAcceptable, calculateBoundingBoxRelativeTo, configure, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getCommands, getContainerMap, getDecorated, getDialogPane, getDialogPanes, getDialogPaneValue, getDialogPaneValues, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getRatioFix, getShortName, getTransform, getWidth, hasActiveChild, install, isInside, isInside, isInternalMouseListenerActive, registerContainer, removeDialogPane, resetActiveHandle, revalidate, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setContainerMap, setDecorated, setDialogPaneValues, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setInternalMouseListenerActive, setRatioFix, setTransform, transformPoint, transformPoint, uninstall, unregisterContainergetInfoBusName, 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, getTitle, 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, releasepublic static final java.lang.String version
protected static final int INCREMENT
protected P2DAttributorInterface attributor
protected float alignment
public void initialize()
initialize in interface P2DModelInterfaceinitialize in class P2DComponentModelP2DComponentModel.initializeprotected void addName(java.lang.String name)
name - the name to be added.protected void removeName(java.lang.String name)
name - the name to be removed.protected void removeAllNames(P2DLegendInterface component)
public void addChannel(P2DLegendInterface component, java.lang.String name)
addChannel in interface P2DLegendModelInterfacecomponent - The legend component to that the model belongs.name - The name of the channel component to be added.public void addChannel(P2DLegendInterface component, P2DChannelInterface channel)
addChannel in interface P2DLegendModelInterfacecomponent - The legend component to that the model belongs.channel - The the channel component to be added.public void removeAllChannels(P2DLegendInterface component)
removeAllChannels in interface P2DLegendModelInterfacecomponent - The legend component to that the model belongs.name - the name of the channel component to be removed.public void removeChannel(P2DLegendInterface component, java.lang.String name)
removeChannel in interface P2DLegendModelInterfacecomponent - The legend component to that the model belongs.name - the name of the channel component to be removed.public void removeChannel(P2DLegendInterface component, P2DChannelInterface channel)
removeChannel in interface P2DLegendModelInterfacecomponent - The legend component to that the model belongs.channel - the channel component to be removed.public java.lang.String[] getChannelNames(P2DLegendInterface component)
getChannelNames in interface P2DLegendModelInterfacepublic P2DChannelInterface[] getChannels(P2DLegendInterface component)
getChannels in interface P2DLegendModelInterfacepublic void setAttributor(P2DLegendInterface component, P2DAttributorInterface attributor)
setAttributor in interface P2DLegendModelInterfaceattributor - The title attributorpublic P2DAttributorInterface getAttributor(P2DLegendInterface component)
getAttributor in interface P2DLegendModelInterfacepublic FwkArrayInterface getAttributedText(P2DLegendInterface component)
getAttributedText in interface P2DLegendModelInterfacepublic void setAlignment(P2DLegendInterface component, float ali)
setAlignment in interface P2DLegendModelInterfaceali - The alignment value. 0 mean left and 1 is rigth aligned,public float getAlignment(P2DLegendInterface component)
getAlignment in interface P2DLegendModelInterfacepublic void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange in interface java.beans.PropertyChangeListenerev - the propertyChangeEvent.