public class mxCellStatePreview extends Object
Modifier and Type | Field and Description |
---|---|
protected List<mxCellState> |
cellStates |
protected boolean |
cloned
Specifies if cell states should be cloned or changed in-place.
|
protected int |
count |
protected 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() |
Map<mxCellState,mxPoint> |
getDeltas() |
float |
getOpacity() |
protected float |
getOpacityForCell(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(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(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.
|
List<mxCellState> |
snapshot(mxCellState state) |
protected void |
translateState(mxCellState parentState,
mxCellState state,
double dx,
double dy) |
protected Map<mxCellState,mxPoint> deltas
protected int count
protected mxGraphComponent graphComponent
protected boolean cloned
protected float opacity
protected List<mxCellState> cellStates
public mxCellStatePreview(mxGraphComponent graphComponent, boolean cloned)
public boolean isCloned()
public void setCloned(boolean value)
public boolean isEmpty()
public int getCount()
public 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(List<mxCellState> snapshot)
public void restoreState(mxCellState state, mxCellState from)
public 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(Graphics g)
protected float getOpacityForCell(Object cell)
protected void paintPreview(mxGraphics2DCanvas canvas)
protected void paintPreviewState(mxGraphics2DCanvas canvas, mxCellState state)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.