public class P2DText extends P2DComponent implements P2DTextInterface
Modifier and Type | Field and Description |
---|---|
protected static FwkDescriptionInterface |
descriptor |
static java.lang.String |
version |
control, model, mouseIsInside, registerCounter, view
components, lastMouseEvent, listeners, localMousePoint, LOCK, parent, readingDOM, selectable
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
CONTROL_KEY, MODEL_KEY, VIEW_KEY
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
DASH_STROKE, DOT_DASH_STROKE, DOT_DOT_DASH_STROKE, DOT_STROKE, LINE_STROKE
Constructor and Description |
---|
P2DText()
Default constructor.
|
P2DText(java.lang.String name)
The constructor receiving a text array.
|
Modifier and Type | Method and Description |
---|---|
float |
getAlignment()
Get the alignment value.
|
FwkArrayInterface |
getAttributedText()
Get the attributed string of the text.
|
P2DAttributorInterface |
getAttributor()
Get the title attributor.
|
static FwkDescriptionInterface |
getDescriptor() |
java.lang.String |
getLine(int index)
Retrieves a line according to the specified index.
|
int |
getSize()
Retrieves the sioze of the array.
|
java.lang.String |
getText()
retrievs the text of the object.
|
FwkArrayInterface |
getTextArray()
retrievs the text of the object.
|
java.lang.String |
getTitle()
Get the title of the canvas.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
setAlignment(float ali)
Set the alignment of the text.
|
void |
setAttributor(P2DAttributorInterface attributor)
Set the title attributor.
|
void |
setText(java.lang.String text)
Sets the text of the object.
|
void |
setTextArray(FwkArrayInterface text)
Sets the text array of the object.
|
addCommand, addCommand, addDialogPane, addToGroup, addToGroup, askForName, boundsAcceptable, calculateBoundingBoxRelativeTo, closestIntersection, commandsAvailable, configure, contains, contains, containsAllChildren, containsAllChildren, deleteGroup, focusGained, focusLost, frameHasHandles, getActive, getActiveHandle, getAllArmedComponents, getAllArmedComponents, getAppearance, getArea, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getClip, getColor, getCommand, getCommands, getContainerMap, getControl, getControlClassId, getDashArray, getDashPhase, getDecorated, getDialogPane, getDialogPanes, getDialogPaneValue, getDialogPaneValues, getEndCap, getFill, getFont, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getGroup, getHeight, getInternalMouseListenerActive, getInverseTransform, getLineJoin, getLineWidth, getLower, getLower, getMiterLimit, getModel, getModelClassId, getRatioFix, getRectangle, getRegisterCounter, getScaledHeight, getScaledLower, getScaledLower, getScaledUpper, getScaledUpper, getScaledWidth, getSelectable, getShortName, getSource, getStroke, getTransform, getTransform, getTranslation, getTransparency, getUpper, getUpper, getView, getViewClassId, getVisible, getWidth, getXFactor, getXOffset, getYFactor, getYOffset, groupExists, hasActiveChild, initialize, intersects, intersects, intersects, intersects, inverseTransformPoint, isInside, isInside, isInside, isInternalMouseListenerActive, isMVCValid, isVisible, loadControl, loadModel, loadView, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, move, openPopupMenu, paint, paint, processFocusEvent, processMouseEvent, propertyChange, register, register, registerContainer, release, removeCommand, removeDialogPane, removeFromGroup, resetActiveHandle, restoreLocalMousePoint, revalidate, saveLocalMousePoint, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setClip, setClip, setColor, setCommands, setContainerMap, setControl, setControlClassId, setDashArray, setDashPhase, setDecorated, setDialogPaneValues, setEndCap, setFill, setFont, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setHeight, setInternalMouseListenerActive, setLineJoin, setLineWidth, setLower, setMemberName, setMiterLimit, setModel, setModelClassId, setName, setOffset, setRatioFix, setScale, setStroke, setTransform, setTransform, setTranslation, setTransparency, setUpper, setView, setViewClassId, setVisible, setWidth, setXScale, setYScale, suspendPropertyChangeEvents, transformPoint, transformPoint, unregister, unregister, unregisterContainer, update, updateControl, updateModel, updateView
addContainerListener, addFocusListener, addListener, addMouseListener, addMouseMotionListener, addOrderListener, addP2D, addP2D, addP2D, addP2D, addP2DImpl, addRepaintListener, finalize, fireContainerAddedEvent, fireContainerRemovedEvent, fireOrderEvent, getActiveComponent, getArmedComponent, getArmedComponent, getComponentCommands, getContainerListenerArray, getFocusListenerArray, getListenerArray, getMouseListenerArray, getMouseMotionListenerArray, getOrderListenerArray, getP2D, getP2D, getP2D, getP2DComponentArray, getP2DComponents, getParentContainer, getRepaintListenerArray, getTreeLock, readConstructor, readFromDOM, readingDOM, readingDOM, removeAllP2D, removeContainerListener, removeFocusListener, removeListener, removeMouseListener, removeMouseMotionListener, removeOrderListener, removeP2D, removeP2D, removeRepaintListener, repaint, restoreLastMouseEvent, saveLastMouseEvent, setActiveComponent, setParentContainer, setSelectable, toBack, toBack, toBack, toFront, toFront, toFront, writeConstructor, writeToDOM, writeToXML
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, isChangeManagerSuspended, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManager
addVetoableChangeListener, addVetoableChangeListener, clearCommands, compareTo, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, 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
getClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion, release
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, updateView
addContainerListener, 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, toFront
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, 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
release
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXML
configure, 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, setVisible
addDialogPane, 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, unregisterContainer
focusGained, focusLost, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
public static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
public P2DText()
public P2DText(java.lang.String name)
name
- The name of the object.P2DTextModelInterface
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class P2DComponent
public static FwkDescriptionInterface getDescriptor()
public java.lang.String getTitle()
getTitle
in interface FwkDescriptionInterface
getTitle
in class FwkPersistence
public void setText(java.lang.String text)
setText
in interface P2DTextInterface
text
- The new text of the object.public void setTextArray(FwkArrayInterface text)
setTextArray
in interface P2DTextInterface
text
- The new text array of the object.public java.lang.String getText()
getText
in interface P2DTextInterface
public FwkArrayInterface getTextArray()
getTextArray
in interface P2DTextInterface
public int getSize()
getSize
in interface P2DTextInterface
public java.lang.String getLine(int index)
getLine
in interface P2DTextInterface
index
- The line number to be retireved.public FwkArrayInterface getAttributedText()
getAttributedText
in interface P2DTextInterface
public void setAlignment(float ali)
setAlignment
in interface P2DTextInterface
ali
- The alignment value. 0 mean left and 1 is rigth aligned,public float getAlignment()
getAlignment
in interface P2DTextInterface
public void setAttributor(P2DAttributorInterface attributor)
setAttributor
in interface P2DTextInterface
attributor
- The title attributorpublic P2DAttributorInterface getAttributor()
getAttributor
in interface P2DTextInterface