|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.GraphConstants
cz.cmc.tcgui.TCGraphConstants
Title: class TCGraphConstants
Description: Support for manipulationm with attribute maps
Copyright: Copyright (c) 2003
Company: CMC Computers
Nested Class Summary | |
static class |
TCGraphConstants.NullDataDefTCObject
Null object to be used instead of null, where null is not allowed |
static class |
TCGraphConstants.NullObject
Null object to be used instead of null, where null is not allowed |
Field Summary | |
static String[] |
availableKeys
|
static String |
DATA_DEFINITION
Maximum size for an autosized cell. |
static String |
FILTER_ENTRY_INDEX
index of a filter entry. |
static String |
FILTER_PRIORITY
Priority of a filter. |
static String |
MAXIMUM_SIZE
Maximum size for an autosized cell. |
static String |
MINIMUM_SIZE
Minimum size for an autosized cell. |
static Object |
NULL_DATADEF_OBJECT
Null datadef object |
static Object |
NULL_OBJECT
Null object |
static String |
TYPE_FONT
Font to write cell types with. |
Fields inherited from class org.jgraph.graph.GraphConstants |
ABSOLUTE, ARROW_CIRCLE, ARROW_CLASSIC, ARROW_DIAMOND, ARROW_DOUBLELINE, ARROW_LINE, ARROW_NONE, ARROW_SIMPLE, ARROW_TECHNICAL, AUTOSIZE, BACKGROUND, BEGINFILL, BEGINSIZE, BENDABLE, BORDER, BORDERCOLOR, BOUNDS, CONNECTABLE, dash, DASHPATTERN, DEFAULTDECORATIONSIZE, defaultFont, DEFAULTFONTSIZE, DEFAULTFONTSTYLE, DISCONNECTABLE, dummyPoint, EDITABLE, ENDFILL, ENDSIZE, FONT, FOREGROUND, HORIZONTAL_ALIGNMENT, HORIZONTAL_TEXT_POSITION, ICON, LABELPOSITION, LINEBEGIN, LINECOLOR, LINEEND, LINESTYLE, LINEWIDTH, MOVEABLE, OFFSET, OPAQUE, PERCENT, POINTS, REMOVEALL, REMOVEATTRIBUTES, REPLACEATTRIBUTES, ROUTING, ROUTING_SIMPLE, SELECTION_STROKE, SIZE, SIZEABLE, STYLE_BEZIER, STYLE_ORTHOGONAL, STYLE_QUADRATIC, VALUE, VERTICAL_ALIGNMENT, VERTICAL_TEXT_POSITION |
Constructor Summary | |
TCGraphConstants()
|
Method Summary | |
static TCObject |
getDataDefinition(Map map)
Returns the data definition object. |
static TCObject |
getDataDefinition(TCObject tco)
Abbrevation for getting datadefinition from TCObject's attributes. |
static String |
getFilterName(Map map)
Returns the name of the queuing disciplne type. |
static int |
getFilterPriority(Map map)
Returns the priority of the filter. |
static Dimension |
getMaximumSize(Map map)
Returns the maximum size for an autosized cell. |
static Dimension |
getMinimumSize(Map map)
Returns the minimum size for an autosized cell. |
static Point |
getOrigin(Map map)
Returns the origin parameter (determined from the current bounds). |
static String |
getQDiscName(Map map)
Returns the name of the queuing disciplne type. |
static int |
getTCObjectContainerEntryIndex(Map map)
Returns the index of the tc object container entry. |
static Font |
getTypeFont(Map map)
Returns the Font to write TC objects type with. |
static boolean |
hasMaximumSize(Map map)
Returns whether the cell has a maximum auto-size set. |
static boolean |
hasMinimumSize(Map map)
Returns whether the cell has a minimum auto-size set. |
static boolean |
hasNullValue(Map map,
AttributeEntryInstance aei)
Returns whether if the attributeentry instance has value of the nul object. |
static Map |
mapForCell(Map attributes,
Object cell)
Returns map for the given cell from the given attributes. |
static void |
resetDataDefinition(Map map)
Resets the data definition object to the null datadef object. |
static void |
setDataDefinition(Map map,
TCObject tco)
Sets the data definition object. |
static void |
setFilterPriority(Map map,
int prio)
Sets the filter priority. |
static void |
setMaximumSize(Map map,
Dimension d)
Sets the maximum size for an autosized cell. |
static void |
setMinimumSize(Map map,
Dimension d)
Sets the minimum size for an autosized cell. |
static void |
setNullValue(Map map,
AttributeEntryInstance aei)
Sets the value of null object for the given AttributeEntryInstance |
static void |
setOrigin(Map map,
int x,
int y)
Sets the origin parameter for the attached cell. |
static void |
setOrigin(Map map,
Point origin)
Sets the origin parameter for the attached cell. |
static void |
setTCObjectContainerEntryIndex(Map map,
int index)
Sets the index of the given tc object container entry. |
static void |
setTypeFont(Map map,
Font font)
Sets the Font to write cell types with. |
Methods inherited from class org.jgraph.graph.GraphConstants |
applyMap, cloneMap, clonePoints, createAttributes, createAttributes, createAttributes, createAttributes, createAttributesFromModel, createMap, getBackground, getBeginSize, getBorder, getBorderColor, getBounds, getDashPattern, getEndSize, getFont, getForeground, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getLabelPosition, getLineBegin, getLineColor, getLineEnd, getLineStyle, getLineWidth, getOffset, getPoints, getRemoveAttributes, getRouting, getSize, getValue, getVerticalAlignment, getVerticalTextPosition, isAbsolute, isAutoSize, isBeginFill, isBendable, isConnectable, isDisconnectable, isEditable, isEndFill, isMoveable, isOpaque, isRemoveAll, isSizeable, replaceKeys, scale, setAbsolute, setAutoSize, setBackground, setBeginFill, setBeginSize, setBendable, setBorder, setBorderColor, setBounds, setConnectable, setDashPattern, setDisconnectable, setEditable, setEndFill, setEndSize, setFont, setForeground, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setLabelPosition, setLineBegin, setLineColor, setLineEnd, setLineStyle, setLineWidth, setMoveable, setOffset, setOpaque, setPoints, setRemoveAll, setRemoveAttributes, setRouting, setSize, setSizeable, setValue, setVerticalAlignment, setVerticalTextPosition, translate, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String[] availableKeys
public static final String TYPE_FONT
public static final String MINIMUM_SIZE
public static final String MAXIMUM_SIZE
public static final String DATA_DEFINITION
public static final String FILTER_PRIORITY
public static final String FILTER_ENTRY_INDEX
public static final Object NULL_OBJECT
public static final Object NULL_DATADEF_OBJECT
Constructor Detail |
public TCGraphConstants()
Method Detail |
public static void setOrigin(Map map, Point origin)
map
- The map to store the font attribute in.origin
- point which is the cell located at.public static void setOrigin(Map map, int x, int y)
map
- The map to store the font attribute in.x
- x-coordinate of the cell locationy
- y-coordinate of the cell locationpublic static Point getOrigin(Map map)
public static void setTypeFont(Map map, Font font)
map
- The map to store the font attribute in.font
- The value to set the attribute to.public static Font getTypeFont(Map map)
public static String getQDiscName(Map map)
public static String getFilterName(Map map)
public static void setMinimumSize(Map map, Dimension d)
public static Dimension getMinimumSize(Map map)
public static boolean hasMinimumSize(Map map)
public static void setMaximumSize(Map map, Dimension d)
public static Dimension getMaximumSize(Map map)
public static boolean hasMaximumSize(Map map)
public static void setDataDefinition(Map map, TCObject tco)
public static void resetDataDefinition(Map map)
public static TCObject getDataDefinition(Map map)
public static TCObject getDataDefinition(TCObject tco)
getDataDefinition(Map map)
public static void setNullValue(Map map, AttributeEntryInstance aei)
map
- Map to put the null value toaei
- AttributeEntryInstance to set the null value forpublic static boolean hasNullValue(Map map, AttributeEntryInstance aei)
public static void setFilterPriority(Map map, int prio)
public static int getFilterPriority(Map map)
public static void setTCObjectContainerEntryIndex(Map map, int index)
public static int getTCObjectContainerEntryIndex(Map map)
public static Map mapForCell(Map attributes, Object cell)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |