org.jgraph.pad.actions
Class ToolBoxText

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.jgraph.pad.actions.AbstractActionDefault
          extended byorg.jgraph.pad.AbstractDefaultVertexnPortsCreator
              extended byorg.jgraph.pad.actions.ToolBoxText
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable, TranslatorConstants, VertexnPortsCreatorInterface

public class ToolBoxText
extends AbstractDefaultVertexnPortsCreator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jgraph.pad.actions.AbstractActionDefault
graphpad
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.jgraph.pad.resources.TranslatorConstants
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ToolBoxText()
           
 
Method Summary
 void actionForCell(DefaultGraphCell cell)
          This hook allow to take a special action just after creating the cell For instance editing the cell.
 javax.swing.JToggleButton getButton()
           
 java.lang.String getCellLabel()
          Override if necessary
 java.lang.String getCellType()
           
 double[] getXPortsList()
          By default a cell don't have ports
 double[] getYPortsList()
          By default a cell don't have ports
 
Methods inherited from class org.jgraph.pad.AbstractDefaultVertexnPortsCreator
actionPerformed, addVertexnPorts, getAttributeMap, getDEFAULT_PORT_NAME, getModelType, getPortName, getPortNames, getToolComponent, getUserObjectProperties, hasFlottingPort, reSize, setDEFAULT_PORT_NAME, setGraphpad, update
 
Methods inherited from class org.jgraph.pad.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getMenuComponents, getName, getPresentationText, getToolComponents, setFontNameForSelection, setFontSizeForSelection, setFontStyleForSelection, setSelectionAttributes
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolBoxText

public ToolBoxText()
Method Detail

getXPortsList

public double[] getXPortsList()
Description copied from class: AbstractDefaultVertexnPortsCreator
By default a cell don't have ports

Specified by:
getXPortsList in interface VertexnPortsCreatorInterface
Overrides:
getXPortsList in class AbstractDefaultVertexnPortsCreator
Returns:
double[]

getYPortsList

public double[] getYPortsList()
Description copied from class: AbstractDefaultVertexnPortsCreator
By default a cell don't have ports

Specified by:
getYPortsList in interface VertexnPortsCreatorInterface
Overrides:
getYPortsList in class AbstractDefaultVertexnPortsCreator
Returns:
double[]

getCellType

public java.lang.String getCellType()

getButton

public javax.swing.JToggleButton getButton()

getCellLabel

public java.lang.String getCellLabel()
Description copied from class: AbstractDefaultVertexnPortsCreator
Override if necessary

Overrides:
getCellLabel in class AbstractDefaultVertexnPortsCreator
Returns:

actionForCell

public void actionForCell(DefaultGraphCell cell)
Description copied from class: AbstractDefaultVertexnPortsCreator
This hook allow to take a special action just after creating the cell For instance editing the cell.

Overrides:
actionForCell in class AbstractDefaultVertexnPortsCreator
Parameters:
cell -