Package breitband.GUI.elements
Class GCableInfo
- java.lang.Object
-
- sag.elements.GElement
-
- sag.elements.GGroup
-
- breitband.GUI.elements.GButton
-
- breitband.GUI.elements.GCableInfo
-
- All Implemented Interfaces:
java.lang.Iterable<sag.elements.GElement>
,sag.elements.Drawable
public class GCableInfo extends GButton
Displays info about a cable type.For certain cable types, a custom vector drawing is rendered. For others, the provided fontAwesome icon is used.
- Author:
- Luna Otte
-
-
Field Summary
Fields Modifier and Type Field Description static float
HEIGHT
static float
SKIP_WIDTH
static float
WIDTH
-
Constructor Summary
Constructors Constructor Description GCableInfo(CableConfig cable, boolean showValue)
Creates a new cable infobox.
-
Method Summary
-
Methods inherited from class breitband.GUI.elements.GButton
clickedEvent, enterEvent, exitEvent, movedEvent, onClick, onEnter, onExit, onMove, onPress, onRelease, onScroll, pressEvent, releaseEvent, scrollEvent
-
Methods inherited from class sag.elements.GGroup
addChild, addChild, getChildByRenderingIndex, getNumChildren, getRawSVGGroup, indexOfChild, iterator, processMouseButtonEvent, processMouseMotionEvent, processMouseWheelEvent, removeChild, renderChildAfter, renderChildBefore, renderChildEarlier, renderChildFirst, renderChildLast, renderChildLater, setChildRenderingIndex, setRootSAGPanel, swapChildren
-
Methods inherited from class sag.elements.GElement
amIPicked, executeUpdate, flipHorizontal, flipVertical, getGElement, getParent, getPositionX, getPositionY, getRGBStringFromColor, getRootSAGPanel, getRotation, getScaleX, getScaleY, getSkewX, getSkewY, move, removeCSSAttribute, removeXMLAttribute, rotate, scale, scale, setAttribute, setCSSAttribute, setCSSAttribute, setDisplay, setFill, setFill, setFillOpacity, setMouseEventListener, setOpacity, setParent, setPosition, setRotation, setScale, setScale, setSkew, setStroke, setStroke, setStroke, setStrokeLinecap, setStrokeLinejoin, setStrokeOpacity, setStrokePattern, setStrokePatternOffset, setStrokeWidth, setXMLAttribute, setXMLAttribute, skew, unsetFill, unsetFillOpacity, unsetOpacity, unsetStroke, unsetStrokeLinecap, unsetStrokeLinejoin, unsetStrokeOpacity, unsetStrokePattern, unsetStrokePatternOffset, unsetStrokeWidth, update, updateTransform
-
-
-
-
Field Detail
-
WIDTH
public static final float WIDTH
- See Also:
- Constant Field Values
-
SKIP_WIDTH
public static final float SKIP_WIDTH
- See Also:
- Constant Field Values
-
HEIGHT
public static final float HEIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GCableInfo
public GCableInfo(CableConfig cable, boolean showValue)
Creates a new cable infobox.- Parameters:
cable
- The cable type to displayshowValue
- Whether the cable's value should be shown
-
-