public class IlvHandlesSelectionStyle extends Object
Constructor and Description |
---|
IlvHandlesSelectionStyle()
Creates a handles selection style that uses small squares as markers
and red color for the handles and dashed red lines for the outline.
|
IlvHandlesSelectionStyle(IlvMarker handlesType,
int handlesSize)
Creates a handles selection style that uses red color for the handles and
dashed red lines for the outline.
|
IlvHandlesSelectionStyle(IlvMarker handlesType,
int handlesSize,
IlvStyle handlesStyle,
IlvStyle outlineStyle)
Creates a handles selection style that uses then given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
drawHandle(Graphics g,
int x,
int y)
Draws a single handle at the specified point.
|
void |
drawRectangle(Graphics g,
int x,
int y,
int width,
int height)
Draws a default selection representation.
|
void |
drawRectangle(Graphics g,
Rectangle r)
Draws a rectangle with a handle at each corner.
|
int |
getHandlesSize()
Returns the size of each handle.
|
IlvStyle |
getHandlesStyle()
Returns the drawing style for the handles.
|
IlvMarker |
getHandlesType()
Returns the type of the handles.
|
IlvStyle |
getOutlineStyle()
Returns the drawing style for the outline of the shapes, that is, the
lines that connect the handles.
|
void |
setHandlesSize(int handlesSize)
Sets the size of each handle.
|
void |
setHandlesStyle(IlvStyle handlesStyle)
Sets the drawing style for the handles.
|
void |
setHandlesType(IlvMarker handlesType)
Sets the type of the handles.
|
void |
setOutlineStyle(IlvStyle outlineStyle)
Sets the drawing style for the outline of the shapes, that is, the
lines that connect the handles.
|
public IlvHandlesSelectionStyle()
public IlvHandlesSelectionStyle(IlvMarker handlesType, int handlesSize)
public IlvMarker getHandlesType()
public void setHandlesType(IlvMarker handlesType)
public int getHandlesSize()
public void setHandlesSize(int handlesSize)
handlesSize
- The size of each handle. The actual drawing size is
2*handlesSize+1
, which ensures that the
handle is always centered at the specified point.public IlvStyle getHandlesStyle()
public void setHandlesStyle(IlvStyle handlesStyle)
public IlvStyle getOutlineStyle()
public void setOutlineStyle(IlvStyle outlineStyle)
public void drawHandle(Graphics g, int x, int y)
public void drawRectangle(Graphics g, Rectangle r)
public void drawRectangle(Graphics g, int x, int y, int width, int height)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.