public class mxCellStatePreview
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<mxCellState> |
cellStates |
protected boolean |
cloned
Specifies if cell states should be cloned or changed in-place.
|
protected int |
count |
protected java.util.Map<mxCellState,mxPoint> |
deltas |
protected mxGraphComponent |
graphComponent |
protected float |
opacity |
Constructor and Description |
---|
mxCellStatePreview(mxGraphComponent graphComponent,
boolean cloned)
Constructs a new state preview.
|
Modifier and Type | Method and Description |
---|---|
void |
addEdges(mxCellState state) |
int |
getCount() |
java.util.Map<mxCellState,mxPoint> |
getDeltas() |
float |
getOpacity() |
protected float |
getOpacityForCell(java.lang.Object cell) |
boolean |
isCloned() |
boolean |
isEmpty() |
mxPoint |
moveState(mxCellState state,
double dx,
double dy) |
mxPoint |
moveState(mxCellState state,
double dx,
double dy,
boolean add,
boolean includeEdges) |
void |
paint(java.awt.Graphics g) |
protected void |
paintPreview(mxGraphics2DCanvas canvas)
Draws the preview using the graphics canvas.
|
protected void |
paintPreviewState(mxGraphics2DCanvas canvas,
mxCellState state)
Draws the preview using the graphics canvas.
|
void |
restore(java.util.List<mxCellState> snapshot) |
void |
restoreState(mxCellState state,
mxCellState from) |
protected mxRectangle |
revalidateState(mxCellState parentState,
mxCellState state,
double dx,
double dy) |
void |
setCloned(boolean value) |
void |
setOpacity(float value) |
mxRectangle |
show()
Returns a dirty rectangle to be repainted in mxGraphControl.
|
java.util.List<mxCellState> |
snapshot(mxCellState state) |
protected void |
translateState(mxCellState parentState,
mxCellState state,
double dx,
double dy) |
protected java.util.Map<mxCellState,mxPoint> deltas
protected int count
protected mxGraphComponent graphComponent
protected boolean cloned
protected float opacity
protected java.util.List<mxCellState> cellStates
public mxCellStatePreview(mxGraphComponent graphComponent, boolean cloned)
public boolean isCloned()
public void setCloned(boolean value)
public boolean isEmpty()
public int getCount()
public java.util.Map<mxCellState,mxPoint> getDeltas()
public void setOpacity(float value)
public float getOpacity()
public mxPoint moveState(mxCellState state, double dx, double dy)
public mxPoint moveState(mxCellState state, double dx, double dy, boolean add, boolean includeEdges)
public mxRectangle show()
public void restore(java.util.List<mxCellState> snapshot)
public void restoreState(mxCellState state, mxCellState from)
public java.util.List<mxCellState> snapshot(mxCellState state)
protected void translateState(mxCellState parentState, mxCellState state, double dx, double dy)
protected mxRectangle revalidateState(mxCellState parentState, mxCellState state, double dx, double dy)
public void addEdges(mxCellState state)
public void paint(java.awt.Graphics g)
protected float getOpacityForCell(java.lang.Object cell)
protected void paintPreview(mxGraphics2DCanvas canvas)
protected void paintPreviewState(mxGraphics2DCanvas canvas, mxCellState state)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.