public abstract class ClosedShape<T> extends Glyph
Modifier and Type | Field and Description |
---|---|
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.
|
alphaC, coef, color, cursorInsideColor, ENTERED_GLYPH, EXITED_GLYPH, fColor, HSV, NO_CURSOR_EVENT, orient, sensit, size, stickedTo, stroke, visible, vx, vy, vz
acO
Constructor and Description |
---|
ClosedShape() |
Modifier and Type | Method and Description |
---|---|
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).
|
addCamera, addHSVColor, clone, containedInRegion, coordInside, coordInsideP, coordInsideV, draw, drawForLens, fillsView, getBounds, getColor, getDefaultColor, getDefaultCursorInsideHighlightColor, getHSVColor, getJava2DShape, getLocation, getOrient, getOwner, getSize, getStickedGlyphArray, getStroke, getTranslucencyValue, getType, getZindex, initCams, isSelected, isSensitive, isVisible, isVisibleThroughLens, move, moveTo, orientTo, project, projectForLens, propagateMove, removeCamera, reSize, select, setColor, setCursorInsideHighlightColor, setDefaultCursorInsideHighlightColor, setHSVColor, setOwner, setSensitivity, setStroke, setTranslucencyValue, setType, setVisible, setZindex, sizeTo, stick, stickToGlyph, toString, unstick, unstickAllGlyphs, unstickAllGlyphs, unstickFromGlyph, visibleInDisc, visibleInRegion, visibleInViewport
public Color borderColor
protected float[] HSVb
public Color bColor
public Color cursorInsideFColor
public void setFilled(boolean b)
public boolean isFilled()
public void setDrawBorder(boolean b)
public boolean isBorderDrawn()
isBorderDrawn
in class Glyph
public void setCursorInsideFillColor(Color c)
c
- set to null to keep the original color.public void setBorderColor(Color c)
setBorderColor
in class Glyph
Glyph.setColor(Color c)
public void setHSVbColor(float h, float s, float v)
setHSVbColor
in class Glyph
h
- 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 Glyph
h
- 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 Glyph
public Color getBorderColor()
getBorderColor
in class Glyph
getDefaultBorderColor()
public Color getDefaultBorderColor()
getBorderColor()
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.