|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.zvtm.glyphs.Glyph
fr.inria.zvtm.glyphs.ClosedShape
public abstract class ClosedShape
Super class of all closed shapes (rectangles, circles, diamonds, polygons, etc.)
| Field Summary | |
|---|---|
Color |
bColor
Border color of this glyph when it is in its default state. |
Color |
borderColor
Current border color (read only, use access methods for all modification purposes). |
Color |
cursorInsideFColor
Fill color of this glyph when cursor is inside it. |
protected float[] |
HSVb
Coordinates of border color in HSV color space. |
| Fields inherited from class fr.inria.zvtm.glyphs.Glyph |
|---|
alphaC, coef, color, cursorInsideColor, ENTERED_GLYPH, EXITED_GLYPH, fColor, HSV, NO_CURSOR_EVENT, orient, sensit, size, stickedTo, stroke, visible, vx, vy, vz |
| Fields inherited from interface fr.inria.zvtm.glyphs.Translucent |
|---|
acO |
| Constructor Summary | |
|---|---|
ClosedShape()
|
|
| Method Summary | |
|---|---|
void |
addHSVbColor(float h,
float s,
float v)
Set the glyph's border color (absolute value, HSV color space). |
Color |
getBorderColor()
Get the glyph's current border color (use getColor for text, paths, segments, etc.). |
Color |
getDefaultBorderColor()
Get the glyph's default border color (use getColor for text, paths, segments, etc.). |
float[] |
getHSVbColor()
Get border color's HSV components. |
void |
highlight(boolean b,
Color selectedColor)
Highlight this glyph to give visual feedback when the cursor is inside it. |
boolean |
isBorderDrawn()
Indicates whether the glyph's border is drawn or not. |
boolean |
isFilled()
Indicates whether this glyph's interior is filled or not. |
void |
setBorderColor(Color c)
Set the glyph's border color (use setColor for text, paths, segments, etc.). |
void |
setCursorInsideFillColor(Color c)
Set the glyph's fill color when cursor is inside it. |
void |
setDrawBorder(boolean b)
Set whether the glyph's border should be drawn or not. |
void |
setFilled(boolean b)
Set whether this glyph's interior should be filled or not. |
void |
setHSVbColor(float h,
float s,
float v)
Set the glyph's border color (absolute value, HSV color space). |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Color borderColor
protected float[] HSVb
public Color bColor
public Color cursorInsideFColor
| Constructor Detail |
|---|
public ClosedShape()
| Method Detail |
|---|
public void setFilled(boolean b)
public boolean isFilled()
isFilled in class Glyphpublic void setDrawBorder(boolean b)
public boolean isBorderDrawn()
isBorderDrawn in class Glyphpublic void setCursorInsideFillColor(Color c)
c - set to null to keep the original color.public void setBorderColor(Color c)
setBorderColor in class GlyphGlyph.setColor(Color c)
public void setHSVbColor(float h,
float s,
float v)
setHSVbColor in class Glyphh - hue in [0.0, 1.0]s - saturation in [0.0, 1.0]v - value (brightness) in [0.0, 1.0]addHSVbColor(float h,float s,float v)
public void addHSVbColor(float h,
float s,
float v)
addHSVbColor in class Glyphh - hue so that the final hue is in [0.0, 1.0]s - saturation so that the final saturation is in [0.0, 1.0]v - value so that the final value (brightness) is in [0.0, 1.0]setHSVbColor(float h,float s,float v)public float[] getHSVbColor()
getHSVbColor in class Glyphpublic Color getBorderColor()
getBorderColor in class GlyphgetDefaultBorderColor()public Color getDefaultBorderColor()
getBorderColor()
public void highlight(boolean b,
Color selectedColor)
highlight in class Glyph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||