public class GPath extends GObject
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentIndex |
protected float |
currentLineWidth |
protected boolean |
disabled
A disable path will be displayed in red
|
protected List<GPathElement> |
elements
List of all elements composing the path
|
static int |
MAX_PATH_BLINK_WIDTH |
static int |
MIN_PATH_BLINK_WIDTH |
protected boolean |
selectable
A selectable path can be selected and each
segment can be highlighted in turn using the
arrow (the current segment will blink)
|
protected boolean |
showRuleLinks |
protected float |
step |
protected boolean |
visible
A visible path will be displayed
|
| Constructor and Description |
|---|
GPath() |
GPath(List<GPathElement> elements,
boolean disabled) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPoint(Point p) |
void |
deselectElement() |
void |
draw(float width,
List ignoreElements) |
void |
drawElements(float width,
List ignoreElements,
boolean ruleLink) |
void |
drawSelectedElement() |
void |
firstElement() |
Rectangle |
getBoundsOfSelectedElement() |
int |
getNumberOfVisibleElements() |
Set<GObject> |
getObjects() |
void |
incrementWidth() |
boolean |
isCurrentElementVisible() |
boolean |
isEnabled() |
boolean |
isSelectable() |
boolean |
isVisible() |
void |
lastElement() |
void |
nextElement() |
void |
previousElement() |
void |
selectElement() |
void |
setContext(GContext context) |
void |
setMaxWidth() |
void |
setMinWidth() |
void |
setSelectable(boolean flag) |
void |
setShowRuleLinks(boolean flag) |
void |
setVisible(boolean flag) |
draw, getBounds, getContextpublic static int MIN_PATH_BLINK_WIDTH
public static int MAX_PATH_BLINK_WIDTH
protected List<GPathElement> elements
protected boolean disabled
protected boolean visible
protected boolean selectable
protected int currentIndex
protected float step
protected float currentLineWidth
protected boolean showRuleLinks
public GPath()
public GPath(List<GPathElement> elements, boolean disabled)
public void setContext(GContext context)
setContext in class GObjectpublic void setVisible(boolean flag)
public boolean isVisible()
public void setSelectable(boolean flag)
public boolean isSelectable()
public boolean isEnabled()
public void setShowRuleLinks(boolean flag)
public int getNumberOfVisibleElements()
public void draw(float width,
List ignoreElements)
public void drawElements(float width,
List ignoreElements,
boolean ruleLink)
public void drawSelectedElement()
public Rectangle getBoundsOfSelectedElement()
public boolean containsPoint(Point p)
containsPoint in class GObjectpublic boolean isCurrentElementVisible()
public void setMaxWidth()
public void setMinWidth()
public void incrementWidth()
public void selectElement()
public void deselectElement()
public void nextElement()
public void previousElement()
public void firstElement()
public void lastElement()
Copyright © 2013. All rights reserved.