|
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
com.jgraph.pad.factory.JGraphpadLibraryPane
Displays groups in a JGraphpadLibrary as a list of entries. Allows to
drag and drop entries to/from JGraph.
| Nested Class Summary | |
static class |
JGraphpadLibraryPane.AutoBoxCell
Utility class to identify autoboxing cells. |
static class |
JGraphpadLibraryPane.FactoryMethod
Provides a factory method to construct a library pane. |
class |
JGraphpadLibraryPane.LibraryGraphTransferHandler
Utility class to implement autoboxing and to set the dragging
flag. |
static class |
JGraphpadLibraryPane.LibraryTracker
Utility class to establish a listener in a editor's document model and update the library panes in a tabbed pane. |
class |
JGraphpadLibraryPane.LibraryTransferHandler
Utility class to redirect transfer events from the library pane to the backing graph if the dragging flag is not set. |
| 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 boolean |
antiAliased
Specifies whether to use antialiasing to render the entries. |
protected boolean |
autoBoxing
Automatically groups cells on drop and ungroups cells on drag. |
protected org.jgraph.JGraph |
backingGraph
Holds the backing graph for rendering. |
protected boolean |
dragging
Internal variable to block drag and drop if the operation was initiated from here. |
protected JGraphEditor |
editor
References the enclosing editor. |
protected int |
entryheight
Defines geometry and spacing. |
protected int |
entrywidth
Defines geometry and spacing. |
protected int |
hgap
Defines geometry and spacing. |
protected boolean |
isReadOnly
Specifies whether the library can be changed. |
protected JGraphpadLibrary |
library
References the library. |
static String |
NODENAME_ENTRYPOPUPMENU
Node name for the library popup menu configuration. |
static String |
NODENAME_LIBRARYPOPUPMENU
Node name for the library popup menu configuration. |
static int |
PREFERRED_WIDTH
Defines the preferred width which is used to find the best number of columns. |
protected CellRendererPane |
rendererPane
|
protected int |
vgap
Defines geometry and spacing. |
| 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 | |
JGraphpadLibraryPane(JGraphEditor editor,
JGraphpadLibrary library)
Constructs a new repository pane for the specified library. |
|
| Method Summary | |
void |
bringEntryToFront()
Brings the selection entry to front (start of list). |
org.jgraph.JGraph |
getBackingGraph()
Returns the backing graph used for rendering entries. |
Rectangle |
getBounds(int index)
Returns the bounds of the entry at index. |
int |
getEntryheight()
Returns the height to draw entries. |
int |
getEntrywidth()
Returns the width to draw entries. |
int |
getHgap()
Returns the horizontal gap between entries. |
int |
getIndexAt(int x,
int y)
Returns the index of the entry at the specified location. |
JGraphpadLibrary |
getLibrary()
Returns the library associated with the library pane. |
Dimension |
getMinimumSize()
Overrides the parent method to contain a single entry. |
static JGraphpadLibraryPane |
getParentLibraryPane(Component component)
Returns the parent library pane of the specified component or the component itself if it is a library pane. |
int |
getVgap()
Returns the vertical gap between entries. |
boolean |
isAntiAliased()
Returns true if rendering should be antialiased. |
boolean |
isAutoBoxing()
Returns true if the library uses autoboxing. |
boolean |
isEmpty()
Returns true if the library contains no entries. |
boolean |
isReadOnly()
|
boolean |
isSelectionEmpty()
Returns true if the library contains no selectio entries. |
void |
paint(Graphics g)
Paints the library pane. |
protected void |
paintView(Graphics g,
org.jgraph.graph.CellView view)
Paints the specified cell view on the local cell renderer pane. |
Dimension |
preferredSize()
Overrides the parent method to contain all entries in a matrix with as many columns as fit into PREFERRED_WIDTH with the current
entrywidth. |
void |
removeEntry()
Removes the selection entry from the library. |
void |
sendEntryToBack()
Sends the selection entry to back (end of list). |
void |
setAntiAliased(boolean antiAliased)
Sets if the rendering should be antialiased. |
void |
setAutoBoxing(boolean autoBoxing)
Sets if the library should use autoboxing. |
void |
setBackingGraph(org.jgraph.JGraph backingGraph)
Sets the backing graph to be used to render entries. |
void |
setEntryheight(int entryheight)
Sets the height to draw entries. |
void |
setEntrywidth(int entrywidth)
Sets the width to draw entries. |
void |
setHgap(int hgap)
Sets the horizontal gap between entries. |
void |
setLibrary(JGraphpadLibrary library)
Sets the library associated with the library pane. |
void |
setReadOnly(boolean readOnly)
|
void |
setVgap(int vgap)
Sets the vertical gap between entries. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String NODENAME_LIBRARYPOPUPMENU
public static final String NODENAME_ENTRYPOPUPMENU
public static int PREFERRED_WIDTH
protected JGraphpadLibrary library
protected JGraphEditor editor
protected int entrywidth
protected int entryheight
protected int hgap
protected int vgap
protected CellRendererPane rendererPane
protected org.jgraph.JGraph backingGraph
protected boolean autoBoxing
protected boolean antiAliased
protected boolean isReadOnly
protected transient boolean dragging
| Constructor Detail |
public JGraphpadLibraryPane(JGraphEditor editor,
JGraphpadLibrary library)
library - The library that contains the cells.| Method Detail |
public boolean isEmpty()
public boolean isSelectionEmpty()
public void removeEntry()
public void bringEntryToFront()
public void sendEntryToBack()
public Rectangle getBounds(int index)
index. This returns a
value regardless of whether an entry at index actually exists.
index - The index that specifies the entry.
index.
public int getIndexAt(int x,
int y)
x - The x position.y - The y position.
public void paint(Graphics g)
g - The graphics to paint the library pane to.
protected void paintView(Graphics g,
org.jgraph.graph.CellView view)
g - view - public Dimension preferredSize()
PREFERRED_WIDTH with the current
entrywidth.
public Dimension getMinimumSize()
public org.jgraph.JGraph getBackingGraph()
public void setBackingGraph(org.jgraph.JGraph backingGraph)
backingGraph - The backing graph to set.public JGraphpadLibrary getLibrary()
public void setLibrary(JGraphpadLibrary library)
library - The library to set.public boolean isAutoBoxing()
public void setAutoBoxing(boolean autoBoxing)
autoBoxing - The autoBoxing to set.public int getEntryheight()
public void setEntryheight(int entryheight)
entryheight - The entryheight to set.public int getEntrywidth()
public void setEntrywidth(int entrywidth)
entrywidth - The entrywidth to set.public int getHgap()
public void setHgap(int hgap)
hgap - The hgap to set.public int getVgap()
public void setVgap(int vgap)
vgap - The vgap to set.public boolean isAntiAliased()
public void setAntiAliased(boolean antiAliased)
antiAliased - The antiAliased to set.public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - The readOnly to set.public static JGraphpadLibraryPane getParentLibraryPane(Component component)
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||