|
JGraph X 2.1.0.7 |
|||||||||
| 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.mxgraph.swing.mxGraphComponent.mxGraphControl
public class mxGraphComponent.mxGraphControl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Point |
translate
Specifies a translation for painting. |
| 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 | |
|---|---|
mxGraphComponent.mxGraphControl()
|
|
| Method Summary | |
|---|---|
protected void |
cellDrawn(mxICanvas canvas,
mxCellState state)
|
void |
drawCell(mxICanvas canvas,
Object cell)
Draws the given cell onto the specified canvas. |
protected void |
drawChildren(Object cell,
boolean edges,
boolean others)
Draws the child edges and/or all other children in the given cell depending on the boolean arguments. |
protected void |
drawFromRootCell()
Hook to draw the root cell into the canvas. |
void |
drawGraph(Graphics2D g,
boolean drawLabels)
|
protected void |
extendComponent(Rectangle rect)
Implements extension of the component in all directions. |
protected Rectangle |
getExtendedCellBounds(mxCellState state)
|
mxGraphComponent |
getGraphContainer()
|
String |
getToolTipText(MouseEvent e)
|
Point |
getTranslate()
Returns the translate. |
protected boolean |
hitClip(mxGraphics2DCanvas canvas,
mxCellState state)
|
protected boolean |
isCellDisplayable(Object cell)
Returns true if the given cell is not the current root or the root in the model. |
void |
paint(Graphics g)
|
void |
paintComponent(Graphics g)
|
void |
scrollRectToVisible(Rectangle aRect,
boolean extend)
Overrides parent method to add extend flag for making the control larger during previews. |
void |
setTranslate(Point value)
Sets the translate. |
void |
updatePreferredSize()
Updates the preferred size for the given scale if the page size should be preferred or the page is visible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Point translate
| Constructor Detail |
|---|
public mxGraphComponent.mxGraphControl()
| Method Detail |
|---|
public Point getTranslate()
public void setTranslate(Point value)
public mxGraphComponent getGraphContainer()
public void scrollRectToVisible(Rectangle aRect,
boolean extend)
protected void extendComponent(Rectangle rect)
public String getToolTipText(MouseEvent e)
getToolTipText in class JComponentpublic void updatePreferredSize()
public void paint(Graphics g)
paint in class JComponentpublic void paintComponent(Graphics g)
paintComponent in class JComponent
public void drawGraph(Graphics2D g,
boolean drawLabels)
protected void drawFromRootCell()
protected boolean hitClip(mxGraphics2DCanvas canvas,
mxCellState state)
protected Rectangle getExtendedCellBounds(mxCellState state)
state - the cached state of the cell whose extended bounds are to be calculated
public void drawCell(mxICanvas canvas,
Object cell)
canvas - Canvas onto which the cell should be drawn.cell - Cell that should be drawn onto the canvas.
protected void drawChildren(Object cell,
boolean edges,
boolean others)
protected void cellDrawn(mxICanvas canvas,
mxCellState state)
protected boolean isCellDisplayable(Object cell)
|
JGraph X 2.1.0.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||