|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.diamondspin.DSFoldingManager
public class DSFoldingManager
Field Summary | |
---|---|
static int |
ALL_FOLD
|
protected Shape |
backClippingShape
|
protected Graphics2D |
backGraphics
|
protected BufferedImage |
backImage
|
protected float |
backOpacity
|
protected boolean |
corner_fold_back
|
protected boolean |
corner_rotation_back
|
protected boolean |
corners_resize_BR_back
|
protected boolean |
corners_resize_TL_back
|
protected DSFrame |
element
|
protected boolean |
foldable
|
protected double |
foldAngle
|
protected Point2D.Double |
foldPoint
|
protected Point2D.Double |
foldPoint1
|
protected Point2D.Double |
foldPoint2
|
protected double |
foldProportion
|
protected boolean |
foldReverse
|
protected Polygon |
foldShapeBack
|
protected Polygon |
foldShapeFront
|
protected int |
foldType
|
protected Shape |
frontClippingShape
|
protected Graphics2D |
frontGraphics
|
protected BufferedImage |
frontImage
|
protected float |
frontOpacity
|
protected Shape |
globalClippingShape
|
static int |
LB_FOLD
|
static int |
LR_FOLD
|
static int |
NO_FOLD
|
static int |
TB_FOLD
|
static int |
TR_FOLD
|
Constructor Summary | |
---|---|
DSFoldingManager(DSFrame frame)
|
Method Summary | |
---|---|
protected void |
applyBackClip(Graphics2D g)
|
protected void |
applyFrontClip(Graphics2D g)
|
void |
fold(Point2D.Double p)
Fold the frame. |
protected void |
fold(Point2D.Double p,
int cause)
|
Shape |
getBackClippingShape()
|
BufferedImage |
getBackImage()
|
float |
getBackOpacity()
|
Point2D.Double |
getFoldPoint()
|
Point2D.Double |
getFoldPoint1()
|
Point2D.Double |
getFoldPoint2()
|
double |
getFoldProportion()
|
Shape |
getFoldShapeBack()
|
Shape |
getFoldShapeFront()
|
int |
getFoldType()
|
Shape |
getFrontClippingShape()
|
BufferedImage |
getFrontImage()
|
float |
getFrontOpacity()
|
Shape |
getGlobalClippingShape()
|
protected void |
init()
initialize usefull ressources |
boolean |
isClip()
|
boolean |
isCornerFold_back()
|
boolean |
isCornerResizeBR_back()
|
boolean |
isCornerResizeTL_back()
|
boolean |
isCornerRotation_back()
|
boolean |
isFoldable()
|
boolean |
isFolded()
|
boolean |
isFoldReverse()
|
void |
paint(Graphics2D g)
|
void |
setBackClippingShape(Shape backClippingShape)
set the clipping Shape used to restrict the painting |
void |
setBackOpacity(float backOpacity)
|
void |
setFoldable(boolean f)
|
void |
setFoldReverse(boolean fr)
|
void |
setFrontClippingShape(Shape frontClippingShape)
set the clipping Shape used to restrict the painting |
void |
setFrontOpacity(float frontOpacity)
|
void |
setGlobalClippingShape(Shape globalClippingShape)
set the clipping Shape used to restrict the painting |
void |
transformLocalToBack(AffineTransform local)
transform a transformation matrix to take into accoud folding |
protected void |
unfold(int cause)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DSFrame element
protected transient BufferedImage frontImage
protected transient BufferedImage backImage
protected transient Graphics2D frontGraphics
protected transient Graphics2D backGraphics
protected transient Shape globalClippingShape
protected transient Shape frontClippingShape
protected transient Shape backClippingShape
protected boolean foldable
protected boolean foldReverse
protected Polygon foldShapeFront
protected Polygon foldShapeBack
protected Point2D.Double foldPoint
protected double foldAngle
protected float backOpacity
protected float frontOpacity
protected double foldProportion
protected Point2D.Double foldPoint1
protected Point2D.Double foldPoint2
protected boolean corners_resize_TL_back
protected boolean corners_resize_BR_back
protected boolean corner_rotation_back
protected boolean corner_fold_back
public static final int ALL_FOLD
public static final int NO_FOLD
public static final int TR_FOLD
public static final int LR_FOLD
public static final int TB_FOLD
public static final int LB_FOLD
protected int foldType
Constructor Detail |
---|
public DSFoldingManager(DSFrame frame)
Method Detail |
---|
public boolean isFolded()
public boolean isFoldable()
public void setFoldable(boolean f)
f
- Is the DSFrame foldable ? If not, the DSFrame is first unfolded with cause NO_MORE_ALLOWED.public boolean isFoldReverse()
public void setFoldReverse(boolean fr)
fr
- Is the backpane model a recto verso one (true) or a transparent slide (false) one ?public void setFrontClippingShape(Shape frontClippingShape)
public Shape getFrontClippingShape()
public void setBackClippingShape(Shape backClippingShape)
public Shape getBackClippingShape()
public void setGlobalClippingShape(Shape globalClippingShape)
public Shape getGlobalClippingShape()
public boolean isClip()
protected void unfold(int cause)
public void transformLocalToBack(AffineTransform local)
public void fold(Point2D.Double p)
protected void fold(Point2D.Double p, int cause)
protected void init()
public void paint(Graphics2D g)
public BufferedImage getFrontImage()
public BufferedImage getBackImage()
public Shape getFoldShapeFront()
public Shape getFoldShapeBack()
public boolean isCornerResizeTL_back()
public boolean isCornerResizeBR_back()
public boolean isCornerRotation_back()
public boolean isCornerFold_back()
public float getBackOpacity()
public void setBackOpacity(float backOpacity)
public float getFrontOpacity()
public void setFrontOpacity(float frontOpacity)
public double getFoldProportion()
public int getFoldType()
public Point2D.Double getFoldPoint()
public Point2D.Double getFoldPoint1()
public Point2D.Double getFoldPoint2()
protected void applyFrontClip(Graphics2D g)
protected void applyBackClip(Graphics2D g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |