public class PolylineController extends Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
PolylineController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
PolylineController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager,
UndoableEditSupport undoSupport)
Creates the controller of polyline view with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PolylineController.Property property,
PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller.
|
Polyline.CapStyle |
getCapStyle()
Returns the edited capStyle.
|
Integer |
getColor()
Returns the edited color.
|
Polyline.DashStyle |
getDashStyle()
Returns the edited dashStyle.
|
Polyline.ArrowStyle |
getEndArrowStyle()
Returns the edited end arrow style.
|
Polyline.JoinStyle |
getJoinStyle()
Returns the edited joinStyle.
|
Polyline.ArrowStyle |
getStartArrowStyle()
Returns the edited start arrow style.
|
Float |
getThickness()
Returns the edited thickness.
|
DialogView |
getView()
Returns the view associated with this controller.
|
boolean |
isArrowsStyleEditable()
Returns
true if arrows style is editable. |
boolean |
isCapStyleEditable()
Returns
true if cap style is editable. |
boolean |
isJoinStyleEditable()
Returns
true if join style is editable. |
void |
modifyPolylines()
Controls the modification of selected polylines in edited home.
|
void |
removePropertyChangeListener(PolylineController.Property property,
PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setCapStyle(Polyline.CapStyle capStyle)
Sets the edited capStyle.
|
void |
setColor(Integer color)
Sets the edited color.
|
void |
setDashStyle(Polyline.DashStyle dashStyle)
Sets the edited dashStyle.
|
void |
setEndArrowStyle(Polyline.ArrowStyle endArrowStyle)
Sets the edited end arrow style.
|
void |
setJoinStyle(Polyline.JoinStyle joinStyle)
Sets the edited joinStyle.
|
void |
setStartArrowStyle(Polyline.ArrowStyle startArrowStyle)
Sets the edited start arrow style.
|
void |
setThickness(Float thickness)
Sets the edited thickness.
|
protected void |
updateProperties()
Updates edited properties from selected polylines in the home edited by this controller.
|
public PolylineController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, UndoableEditSupport undoSupport)
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(PolylineController.Property property, PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(PolylineController.Property property, PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public void setThickness(Float thickness)
public Float getThickness()
public void setCapStyle(Polyline.CapStyle capStyle)
public Polyline.CapStyle getCapStyle()
public boolean isCapStyleEditable()
true
if cap style is editable.public void setJoinStyle(Polyline.JoinStyle joinStyle)
public Polyline.JoinStyle getJoinStyle()
public boolean isJoinStyleEditable()
true
if join style is editable.public void setDashStyle(Polyline.DashStyle dashStyle)
public Polyline.DashStyle getDashStyle()
public void setStartArrowStyle(Polyline.ArrowStyle startArrowStyle)
public Polyline.ArrowStyle getStartArrowStyle()
public void setEndArrowStyle(Polyline.ArrowStyle endArrowStyle)
public Polyline.ArrowStyle getEndArrowStyle()
public boolean isArrowsStyleEditable()
true
if arrows style is editable.public void setColor(Integer color)
public Integer getColor()
public void modifyPolylines()
© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License