|
mxGraph 1.10.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.swing.view.mxCellStatePreview
public class mxCellStatePreview
Represents the current state of a cell in a given graph view.
Field Summary | |
---|---|
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 Summary | |
---|---|
mxCellStatePreview(mxGraphComponent graphComponent,
boolean cloned)
Constructs a new state preview. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<mxCellState,mxPoint> deltas
protected int count
protected mxGraphComponent graphComponent
protected boolean cloned
protected float opacity
protected List<mxCellState> cellStates
Constructor Detail |
---|
public mxCellStatePreview(mxGraphComponent graphComponent, boolean cloned)
Method Detail |
---|
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)
|
mxGraph 1.10.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |