|
mxGraph 2.3.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.mxgraph.swing.mxGraphOutline
public class mxGraphOutline
An outline view for a specific graph component.
Nested Class Summary | |
---|---|
class |
mxGraphOutline.MouseTracker
|
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 AdjustmentListener |
adjustmentHandler
|
protected boolean |
antiAlias
|
protected ComponentListener |
componentHandler
|
static Color |
DEFAULT_ZOOMHANDLE_FILL
|
protected boolean |
drawLabels
|
protected Rectangle |
finderBounds
|
protected boolean |
finderVisible
|
protected boolean |
fitPage
Specifies if the outline should be zoomed to the page if the graph component is in page layout mode. |
protected mxGraphComponent |
graphComponent
|
protected int |
outlineBorder
Not yet implemented. |
protected boolean |
repaintBuffer
True if the triple buffer needs a full repaint. |
protected mxRectangle |
repaintClip
Clip of the triple buffer to be repainted. |
protected mxEventSource.mxIEventListener |
repaintHandler
|
protected double |
scale
|
protected mxGraphOutline.MouseTracker |
tracker
|
protected Point |
translate
|
protected BufferedImage |
tripleBuffer
TODO: Not yet implemented. |
protected boolean |
tripleBuffered
|
protected Graphics2D |
tripleBufferGraphics
Holds the graphics of the triple buffer. |
protected boolean |
useScaledInstance
|
protected boolean |
zoomGesture
|
protected Point |
zoomHandleLocation
|
protected boolean |
zoomHandleVisible
|
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 | |
---|---|
mxGraphOutline(mxGraphComponent graphComponent)
|
Method Summary | |
---|---|
void |
checkTripleBuffer()
Checks if the triple buffer exists and creates a new one if it does not. |
protected void |
createTripleBuffer(int width,
int height)
Creates the tripleBufferGraphics and tripleBuffer for the given dimension and draws the complete graph onto the triplebuffer. |
void |
destroyTripleBuffer()
Destroys the tripleBuffer and tripleBufferGraphics objects. |
mxGraphComponent |
getGraphComponent()
|
boolean |
isAntiAlias()
|
boolean |
isDrawLabels()
|
boolean |
isFitPage()
|
boolean |
isTripleBuffered()
|
protected void |
paintBackground(Graphics g)
Paints the background. |
void |
paintComponent(Graphics g)
|
protected void |
paintForeground(Graphics g)
Paints the foreground. |
void |
paintGraph(Graphics g)
Paints the graph outline. |
void |
repaintTripleBuffer(Rectangle clip)
Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified. |
void |
setAntiAlias(boolean antiAlias)
Fires a property change event for antiAlias . |
void |
setDrawLabels(boolean drawLabels)
Fires a property change event for drawLabels . |
void |
setFinderVisible(boolean visible)
|
void |
setFitPage(boolean fitPage)
Fires a property change event for fitPage . |
void |
setGraphComponent(mxGraphComponent graphComponent)
Fires a property change event for graphComponent . |
void |
setTripleBuffered(boolean tripleBuffered)
Fires a property change event for tripleBuffered . |
void |
setVisible(boolean visible)
|
void |
setZoomHandleVisible(boolean visible)
|
void |
updateFinder(boolean repaint)
|
void |
updateFinderBounds(Rectangle bounds,
boolean repaint)
|
boolean |
updateScaleAndTranslate()
Returns true if the scale or translate has changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Color DEFAULT_ZOOMHANDLE_FILL
protected mxGraphComponent graphComponent
protected BufferedImage tripleBuffer
protected Graphics2D tripleBufferGraphics
protected boolean repaintBuffer
protected mxRectangle repaintClip
protected boolean tripleBuffered
protected Rectangle finderBounds
protected Point zoomHandleLocation
protected boolean finderVisible
protected boolean zoomHandleVisible
protected boolean useScaledInstance
protected boolean antiAlias
protected boolean drawLabels
protected boolean fitPage
protected int outlineBorder
protected mxGraphOutline.MouseTracker tracker
protected double scale
protected Point translate
protected transient boolean zoomGesture
protected mxEventSource.mxIEventListener repaintHandler
protected ComponentListener componentHandler
protected AdjustmentListener adjustmentHandler
Constructor Detail |
---|
public mxGraphOutline(mxGraphComponent graphComponent)
Method Detail |
---|
public void setTripleBuffered(boolean tripleBuffered)
tripleBuffered
.
tripleBuffered
- the tripleBuffered to setpublic boolean isTripleBuffered()
public void setDrawLabels(boolean drawLabels)
drawLabels
.
drawLabels
- the drawLabels to setpublic boolean isDrawLabels()
public void setAntiAlias(boolean antiAlias)
antiAlias
.
antiAlias
- the antiAlias to setpublic boolean isAntiAlias()
public void setVisible(boolean visible)
setVisible
in class JComponent
public void setFinderVisible(boolean visible)
public void setZoomHandleVisible(boolean visible)
public void setFitPage(boolean fitPage)
fitPage
.
fitPage
- the fitPage to setpublic boolean isFitPage()
public mxGraphComponent getGraphComponent()
public void setGraphComponent(mxGraphComponent graphComponent)
graphComponent
.
graphComponent
- the graphComponent to setpublic void checkTripleBuffer()
protected void createTripleBuffer(int width, int height)
width
- height
- public void destroyTripleBuffer()
public void repaintTripleBuffer(Rectangle clip)
clip
- public void updateFinder(boolean repaint)
public void updateFinderBounds(Rectangle bounds, boolean repaint)
public void paintComponent(Graphics g)
paintComponent
in class JComponent
protected void paintBackground(Graphics g)
public void paintGraph(Graphics g)
protected void paintForeground(Graphics g)
public boolean updateScaleAndTranslate()
|
mxGraph 2.3.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |