|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
com.jgraph.editor.factory.JGraphEditorComboBox
Combo box for selecting cell styles. The class provides a series of factory
methods to be added to an editor factory. The following methods are provided:
JGraphEditorComboBox.BorderComboFactoryMethod, JGraphEditorComboBox.LineDecorationComboFactoryMethod
and JGraphEditorComboBox.LineWidthComboFactoryMethod.
| Nested Class Summary | |
static class |
JGraphEditorComboBox.BorderComboFactoryMethod
Provides a factory method to construct a border combo box. |
class |
JGraphEditorComboBox.CellViewRendererBridge
This class returns the renderer of the view configured for the selected combo box item. |
static class |
JGraphEditorComboBox.ComboBoxListener
This class edits the selection of the focused graph according to the selected combo box item. |
static class |
JGraphEditorComboBox.DashPatternComboFactoryMethod
Provides a factory method to construct a dashpattern combo box. |
protected static class |
JGraphEditorComboBox.JGraphComboEdgeRenderer
This class removes the translate call in the paint method. |
protected static class |
JGraphEditorComboBox.JGraphComboEdgeView
This class provides a an edge view with a special renderer. |
static class |
JGraphEditorComboBox.LineDecorationComboFactoryMethod
Provides a factory method to construct a line decoration combo box. |
static class |
JGraphEditorComboBox.LineWidthComboFactoryMethod
Provides a factory method to construct a linewidth combo box. |
| Nested classes inherited from class javax.swing.JComboBox |
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected static org.jgraph.JGraph |
backingGraph
Shared graph instance for rendering. |
static Border[] |
defaultBorders
Default array of borders. |
static int[] |
defaultDecorations
Default array or arrows. |
static int[] |
defaultFillableDecorations
Default array of fillable arrows. |
protected static float[][] |
defaultPatterns
Default array of patterns. |
static float[] |
defaultWidths
Default array of widths. |
protected org.jgraph.graph.AttributeMap |
initialAttributes
Initial view attributes for restoring. |
| Fields inherited from class javax.swing.JComboBox |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JGraphEditorComboBox(Map[] attributes,
boolean edgePreview)
Constructs a new combo box for the specified attribute maps. |
|
JGraphEditorComboBox(Map[] attributes,
org.jgraph.graph.CellView view,
boolean edgePreview)
Constructs a new combo box for the specified attribute maps. |
|
| Method Summary | |
protected org.jgraph.graph.CellView |
createEdgeView()
Returns a new edge to be used for preview. |
protected org.jgraph.graph.CellView |
createVertexView()
Returns a new vertex to be used for preview. |
static org.jgraph.JGraph |
getBackingGraph()
Returns the backing graph which is used for rendering previews. |
protected Dimension |
getVertexViewSize()
Hook for subclassers to modify the size of the vertex view. |
static void |
setBackingGraph(org.jgraph.JGraph backingGraph)
Sets the backing graph which should be used for rendering previews. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static Border[] defaultBorders
public static float[] defaultWidths
protected static float[][] defaultPatterns
public static int[] defaultFillableDecorations
public static int[] defaultDecorations
protected static org.jgraph.JGraph backingGraph
protected org.jgraph.graph.AttributeMap initialAttributes
| Constructor Detail |
public JGraphEditorComboBox(Map[] attributes,
boolean edgePreview)
edgePreview is true, otherwise a
vertex view is used.
attributes - The array of attributes for the combo box entries.edgePreview - Whether to use an edge for preview.
public JGraphEditorComboBox(Map[] attributes,
org.jgraph.graph.CellView view,
boolean edgePreview)
edgePreview is true, otherwise a
vertex view is used.
attributes - The array of attributes for the combo box entries.view - The cell view to use for previewing the attributes.edgePreview - Whether to use an edge for preview.| Method Detail |
protected org.jgraph.graph.CellView createVertexView()
VertexView with a string user object.
protected Dimension getVertexViewSize()
protected org.jgraph.graph.CellView createEdgeView()
JGraphEditorComboBox.JGraphComboEdgeView with a string user object and a set of
default points.
public static org.jgraph.JGraph getBackingGraph()
public static void setBackingGraph(org.jgraph.JGraph backingGraph)
backingGraph - The backing graph to set.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||